3D Lingo Dictionary > O-S > shadowPercentage

 

shadowPercentage

Syntax

member(whichCastmember).model(whichModel).toon.shadowPercentage
member(whichCastmember).model(whichModel).shader.shadowPercentage
member(whichCastmember).shader(whichShader).shadowPercentage

Description

3D toon modifier and painter shader property; indicates the percentage of available colors that are used in the area of the model's surface where light does not create highlights.

The range of this property is 0 to 100, and the default value is 50.

The number of colors used by the toon modifier and painter shader for a model is determined by the colorSteps property of the model's toon modifier or painter shader.

Example

This statement sets the shadowPercentage property of the toon modifier for the model named Teapot to 50. Half of the colors available to the toon modifier for this model will be used for the shadow area of the model's surface.

member("shapes").model("Teapot").toon.shadowPercentage = 50

See also

colorSteps, shadowStrength