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.

Appendix B<br />

RENDERMAN SHADING LANGUAGE SYNTAX<br />

SUMMARY<br />

This summary of the Shading Language syntax is intended more for aiding comprehension<br />

than as an exact description of the language.<br />

B.1 Declarations<br />

Shading Language source files consist of definitions:<br />

definitions:<br />

shader definition<br />

function definition<br />

shader definition:<br />

shader type identifier ([formals]) { statements }<br />

function definition:<br />

[type] identifier ( [formals] ) { statements }<br />

shader type:<br />

light<br />

surface<br />

volume<br />

displacement<br />

imager<br />

formals:<br />

formal variable definitions<br />

formals ; formal variable definitions<br />

formal variable definitions:<br />

[outputspec] typespec def expressions<br />

variables:<br />

161

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

Saved successfully!

Ooh no, something went wrong!