shade.js: Adaptive Material Descriptions
dc.contributor.author | Sons, Kristian | en_US |
dc.contributor.author | Klein, Felix | en_US |
dc.contributor.author | Sutter, Jan | en_US |
dc.contributor.author | Slusallek, Philipp | en_US |
dc.contributor.editor | J. Keyser, Y. J. Kim, and P. Wonka | en_US |
dc.date.accessioned | 2015-03-03T12:50:56Z | |
dc.date.available | 2015-03-03T12:50:56Z | |
dc.date.issued | 2014 | en_US |
dc.description.abstract | In computer graphics a material is a visual concept that is parameterizable and should work for arbitrary 3D assets and rendering systems. Since provided parameters and attributes as well as the capabilities of rendering systems vary considerably, a material needs to adapt to its execution environment. In current approaches, the adaptation logic is 'baked' into the rendering application based on string manipulation, compiler directives, or metaprogramming facilities. However, in order to achieve application-independent and self-contained material descriptions, the adaptation logic needs to be part of the material description itself. In this paper we present shade.js, a novel material description using a dynamic language to achieve the necessary adaptivity. A shader can inspect its execution environment and adapt to the available parameters and renderer capabilities at run time. Additionally, shade.js exploits the polymorphism that comes with non-explicit declaration of types. These two novel features allow for writing adaptable and thus more general material descriptions. Based on the concrete execution environment at run time, the accompanied compiler generates specialized shader code that is specifically typed and optimized for the target rendering system and algorithm. We evaluate shade.js with examples targeting four different rendering approaches (forward and deferred rasterization, ray-tracing, and global illumination). We show that we can improve convenience and flexibility for specifying materials without sacrificing performance. | en_US |
dc.description.seriesinformation | Computer Graphics Forum | en_US |
dc.identifier.doi | 10.1111/cgf.12473 | en_US |
dc.identifier.issn | 1467-8659 | en_US |
dc.identifier.uri | https://doi.org/10.1111/cgf.12473 | en_US |
dc.publisher | The Eurographics Association and John Wiley and Sons Ltd. | en_US |
dc.title | shade.js: Adaptive Material Descriptions | en_US |