List of shader types
Isotropic:
Light is scattered uniformly independent of the particle, light and camera orientation in space. The Isotropic phase function does not take any additional parameters.
Usage:
ri.Surface( âIsotropicâ )
Phong Surface:
Scatters light dependent on the angle between the light sourceâs direction, the particle normal and the viewing direction according to the Phong specular model. Note that the Phong model describes surface behavior but in Krakatoa every particle, even deep under the surface, will be shaded using this surface shading method. When using low densities, the results might appear unrealistic, producing âshiny volumesâ.To use this shade function, the particles must have a âNormalâ channel.See online documentation for example renders using this function.
Parameters:
-The âSpecularLevelâ parameter defines the scaling value of the cosine value and defaults to 100.0.
-The âSpecularPowerâ parameter defines the power of the cosine value and defaults to 10.
-The âAllocateSpecularLevelâ and âAllocateSpecularPowerâ parameters both default to False. When set to True, the respective channels will be allocated in memory to allow per-particle control of the Phong Shading.
Usage:
ri.Surface( âPhong Surfaceâ,
âSpecularLevelâ, 100,
âAllocateSpecularLevelâ, False,
âSpecularPowerâ, 10,
âAllocateSpecularPowerâ, False )
Henyey-Greenstein:
Henyey-Greenstein phase function for ellipsoid-shaped scattering. Scatters light dependent on the angle between the light and the viewing direction. See online documentation for example renders using this function.
Parameters:
-The âPhaseEccentricityâ parameter controls the amount of the effect. The default value of 0 produces isotropic scattering.
-The âAllocatePhaseEccentricityâ parameter defaults to False. When true, a âPhaseEccentricityâ channel will be allocated and will be used to control the effect per-particle (assuming valid channel data is provided).
Usage:
ri.Surface( âHenyey-Greensteinâ,
âPhaseEccentricityâ, 0,
âAllocatePhaseEccentrictyâ, False )
Schlick:
Schlick phase function approximation to the Henyey-Greenstein function. Scatters light dependent on the angle between the light and the viewing direction. See online documentation for example renders using this function.
Parameters:
-The âPhaseEccentricityâ parameter controls the amount of the effect. The default value of 0 produces isotropic scattering.
-The âAllocatePhaseEccentricityâ parameter defaults to False. When true, a âPhaseEccentricityâ channel will be allocated and will be used to control the effect per-particle (assuming valid channel data is provided).
Usage:
ri.Surface( âSchlickâ,
âPhaseEccentricityâ, 0,
âAllocatePhaseEccentrictyâ, False )
Kajiya-Kay Hair:
Kajiya-Kay phase function for rendering of fibers such as hair or cloth. To use this phase function, the particles must have a âTangentâ channel. This function also uses an optional âDiffuseLevelâ channel if it exists.
Parameters:
-The âSpecularLevelâ parameter defines the scaling value of the cosine value and defaults to 100.0.
-The âSpecularPowerâ parameter defines the power of the cosine value and defaults to 10.
-The âAllocateSpecularLevelâ and âAllocateSpecularPowerâ parameters both default to False. When set to True, the respective channels will be allocated in memory to allow per-particle control of the shading.
Usage:
ri.Surface( âKajiya-Kay Hairâ,
âSpecularLevelâ, 100,
âAllocateSpecularLevelâ, False,
âSpecularPowerâ, 10,
âAllocateSpecularPowerâ, False )
Marschner Hair:
Marschner phase function for rendering of hair. To use this phase function, the particles must have âNormalâ and âTangentâ channels. See this page for more details: renderman.pixar.com/products/wha ⊠gkong.html.
Usage:
ri.Surface( âMarschner Hairâ,
âSpecularGlossinessVaryingâ, False,
âSpecularGlossinessâ, 300,
âSpecularLevelVaryingâ, False,
âSpecularLevelâ, 25,
âSpecularShiftVaryingâ, False,
âSpecularShiftâ, 0.1,
âSpecular2GlossinessVaryingâ, False,
âSpecular2Glossinessâ, 30,
âSpecular2LevelVaryingâ, False,
âSpecular2Levelâ, 90,
âSpecular2ShiftVaryingâ, False,
âSpecular2Shiftâ, -0.1,
âGlintLevelVaryingâ, False,
âGlintLevelâ, 400,
âGlintSizeVaryingâ, False,
âGlintSizeâ, 0.5,
âGlintGlossinessVaryingâ, False,
âGlintGlossinessâ, 10,
âDiffuseLevelVaryingâ, False,
âDiffuseLevelâ, 0 )