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.

Motion Blur<br />

Programmable Shading<br />

Displacements<br />

Bump Mapping<br />

Texture Mapping<br />

Ray Tracing<br />

Environment Mapping<br />

##RendererSpecificAttributes<br />

Declare "refractionindex" "uniform float"<br />

Declare "displacement" "uniform float"<br />

Attribute "volume" "refractionindex" [1.0]<br />

Attribute "bound" "displacement" 3.5<br />

##RendererSpecificOptions<br />

Declare "bucketsize" "uniform integer[2]"<br />

Declare "texturememory" "uniform integer"<br />

Declare "shader" "string"<br />

Declare "texture" "string"<br />

Option "limits" "bucketsize" [12 12]<br />

Option "limits" "texturememory" 1024<br />

Option "searchpath" "shader" "/usr/local/prman/shaders"<br />

Option "searchpath" "texture" "/usr/local/prman/textures"<br />

##ShaderResources<br />

surface wood(<br />

float ringscale = 10;<br />

color lightwood = color(.3, .12, 0.0);<br />

darkwood = color(.05, .01, .005);<br />

float Ka =.2,<br />

Kd =.4,<br />

Ks =.6,<br />

roughness =.1)<br />

displacement dented(float Km = 1.0)<br />

light slideprojector (<br />

float fieldofview=PI/32;<br />

point from = {8,-4,10), to = {0,0,0), up = point "eye" (0,1,0);<br />

string slidename = "" )<br />

##Include othershaderfile<br />

##TextureResources<br />

brick<br />

bluebrick<br />

grass #kentucky bluegrass-1 square meter<br />

moss #spanish moss<br />

logo<br />

##Include othertexturefile<br />

194

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

Saved successfully!

Ooh no, something went wrong!