26.01.2015 Views

The RenderMan Interface - Paul Bourke

The RenderMan Interface - Paul Bourke

The RenderMan Interface - Paul Bourke

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>The</strong> standard data names supported by rendererinfo are listed in Table 15.6. A particular<br />

implementation may support additional rendererinfo queries.<br />

Name Type Description<br />

”renderer” uniform string <strong>The</strong> brand name of the renderer.<br />

”version” uniform float [4] Major, minor, release, and patch numbers.<br />

”versionstring” uniform string <strong>The</strong> release numbers expressed as a string.<br />

Table 15.6: Data names known to the rendererinfo function.<br />

string shadername ( )<br />

string shadername ( string shadertype )<br />

If no parameter is passed, returns the name of the shader that is currently running. If<br />

the shadertype is supplied, this function returns the name of the shader of the specified<br />

type that is bound to the geometric primitive which is being shaded. Acceptable<br />

values of shadertype are ”surface”, ”displacement”, ”atmosphere”, ”lightsource”, ”interior”,<br />

”exterior”. If the surface being shaded does not have a shader bound to it which<br />

matches the type, this function will return the empty string (””).<br />

150

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!