Specializing shaders
Brian K. Guenter, Todd B. Knoblock, Erik Ruf · ACM SIGGRAPH Annual Conference on Computer Graphics and Interactive Techniques (SIGGRAPH) · 1995
We have developed a system for interactive manipulation of shading parameters for three dimensional rendering.The system takes as input user-defined shaders, written in a subset of C, which are then specialized for interactive use.Since users typically experiment with different values of a single shader parameter while leaving the others constant, we can benefit by automatically generating a specialized shader that performs only those computations depending on the parameter being varied; all other values needed by the shader can be precomputed and cached.The specialized shaders are as much as 95 times faster than the original user defined shader.This dramatic improvement in speed makes it possible to interactively view parameter changes for relatively complex shading models, such as procedural solid texturing.
Cited by 64 works. doi:10.1145/218380.218470 Open-access PDF
Authors
References
- Partial evaluation and automatic program generation
- The RenderMan companion
- Advanced animation and rendering techniques
- A language for shading and lighting calculations
- Incremental evaluation for attribute grammars with application to syntax-directed editors
- Incremental computation via function caching
- Ray tracing algebraic surfaces
- Ray tracing algebraic surfaces
- A language for shading and lighting calculations
- Special purpose automatic programming for hidden surface elimination