Shader: "translucent plastic"

"translucent plastic"

ClassReflectance
Synopsis Glossy plastic-like reflectance with translucency, suitable for shiny or highly polished translucent materials such as translucent plastic.
Arguments

"ambient factor" Type: LtFloat
Default:0.1
Range:[ 0, inf ]
Hint:[ 0, 1 ]
"diffuse factor" Type: LtFloat
Default:0.75
Range:[ 0, inf ]
Hint:[ 0, 1 ]
"specular factor" Type: LtFloat
Default:0.5
Range:[ 0, inf ]
Hint:[ 0, 1 ]
"roughness" Type: LtFloat
Default:0.1
Range:[ 0.0001, inf ]
Hint:[ 0.001, 1 ]
"specular colour" Type: LtColour
Default:(1.0, 1.0, 1.0)
Range: [ 0, inf ], [ 0, inf ], [ 0, inf ]
Hint: [ 0, 1 ], [ 0, 1 ], [ 0, 1 ]
"translucency factor" Type: LtFloat
Default:1.0
Range:[ 0, inf ]
Hint:[ 0, 1 ]
Locationlishpro
Description A reflectance model providing a specular effect which is similar to the Phong model with translucency.

Reflectance is as for the "plastic" shader but an additional diffuse term is added which represents the diffuse contribution from lights on the reverse side of the surface. The degree of translucency is controlled by the argument "translucency factor".

Reflectance co-efficients are provided which allow specification of the amount of ambient, diffuse and specular light reflected, corresponding to arguments "ambient factor", "diffuse factor" and "specular factor" respectively.

The sharpness of the specular reflection highlights can be controlled by means of argument "roughness". The reflection is made sharper with small values for the roughness, such as 0.1. Larger values, such as 1.0, decrease the specular fall-off. The colour of the specular highlights is filtered by the colour argument "specular colour".

This model is suitable for shiny or highly polished translucent materials such as translucent plastic.

Previous page alphabetically (translucency)
Next page alphabetically (turbulent)
Index


Copyright © 1990-2005, 2006 LightWork Design Limited. All rights reserved