So the example below would generate a wooden sphere, and a stone box.
ox --> (world
(separator
(surface "wood" 'Ka .1 'grain .2)
(sphere))
(separator
(surface "stone" 'roughness .03)
(box))
)
Each function requires the name of the shader desired, followed by
a parameter list. As always, consult The RenderMan Companion,
the manual for Dave, or Steve May for complete paramenter lists.
Of course, Users are welcome and encouraged to write their own shaders, as well.
Remember, a shader needs a light source to be seen, and ambient alone won't do!
Carpet:Constant:
![]()
(Note: still working on paintedplastic and texmap...)
ox --> (probe-shader "plastic")
surface plastic
Ks 0.5
Kd 0.5
Ka 1
roughness 0.1
specularcolor (1 1 1)
Slightly more information can be gained by adding the optional argument "#t":
ox --> (probe-shader "plastic" #t)
surface plastic
("Ks" "uniform" "scalar" "" 0.5)
("Kd" "uniform" "scalar" "" 0.5)
("Ka" "uniform" "scalar" "" 1)
("roughness" "uniform" "scalar" "" 0.1)
("specularcolor" "uniform" "color" "rgb" (1 1 1))