RenderMan Shading Language
Renderman Shading Language (abbreviated RSL) is a component of the RenderMan Interface Specification, and is used to define shaders.[src] The language syntax is C-like.[src] A shader written in RSL can be used without changes on any RenderMan-compliant renderer, such as Pixar's PhotoRealistic RenderMan, DNA Research's 3Delight, Sitexgraphics' Air or an open source solution such as Pixie or Aqsis.[src] RenderMan Shading Language defines standalone functions and five types of shaders: surface, light, volume, imager and displacement shaders.[src] An example of a surface shader that defines a metal surface is: surface metal (float Ka = 1; float Ks = 1; float roughness = 0.1;) { normal Nf = faceforward (normalize(N), I); vector V = - normalize (I); Oi = Os; Ci = Os * Cs * (Ka * ambient() + Ks * specular (Nf, V, roughness)); } Shaders express their work by reading and writing special variables such as Cs (surface color), N (normal at given point), and Ci (final surface color).[src] The arguments to the shaders are global parameters that are attached to objects of the model (so one metal shader can be used for different metals and so on).[src] Shaders have no return values, but functions can be defined which take arguments and return a value.[src] For example, the following function computes vector length using the dot product operator ".": float length (vector v) { return sqrt (v .[src] v); /* .[src] is a dot product */ }[src]
Renderman Shading Language (abbreviated RSL) is a component of the RenderMan Interface Specification, and is used to define shaders.[src] The language syntax is C-like.[src] A shader written in RSL can be used without changes on any RenderMan-compliant renderer, such as Pixar's PhotoRealistic RenderMan, DNA Research's 3Delight, Sitexgraphics' Air or an open source solution such as Pixie or Aqsis.[src] RenderMan Shading Language defines standalone functions and five types of shaders: surface, light, volume, imager and displacement shaders.[src] An example of a surface shader that defines a metal surface is: surface metal (float Ka = 1; float Ks = 1; float roughness = 0.1;) { normal Nf = faceforward (normalize(N), I); vector V = - normalize (I); Oi = Os; Ci = Os * Cs * (Ka * ambient() + Ks * specular (Nf, V, roughness)); } Shaders express their work by reading and writing special variables such as Cs (surface color), N (normal at given point), and Ci (final surface color).[src] The arguments to the shaders are global parameters that are attached to objects of the model (so one metal shader can be used for different metals and so on).[src] Shaders have no return values, but functions can be defined which take arguments and return a value.[src] For example, the following function computes vector length using the dot product operator ".": float length (vector v) { return sqrt (v .[src] v); /* .[src] is a dot product */ } ==Further reading== ==External links== Shading Language (RSL) documentation zh:RenderMan规范#RenderMan着色语言(RSL)[src]
20 sentences · 20 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"RenderMan Shading Language." encyclopegia.org, 2026, https://encyclopegia.org/wiki/renderman-shading-language. Accessed 05 December 2026.
Chicago
"RenderMan Shading Language." encyclopegia.org. Accessed December 5, 2026. https://encyclopegia.org/wiki/renderman-shading-language.
APA
encyclopegia.org. (2026). RenderMan Shading Language. Retrieved December 5, 2026, from https://encyclopegia.org/wiki/renderman-shading-language
Accessed December 5, 2026 · CC BY-SA 4.0 · citation page · JSON