3D Lingo Dictionary > E-K > highlightPercentage |  |

highlightPercentage

Syntax

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

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 creates 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 `highlightPercentage` property of the `toon` modifier for the model named Sphere to 50. Half of the colors available to the `toon` modifier for this model will be used for the highlight area of the model's surface.

    member("shapes").model("Sphere").toon.highlightPercentage = 50

See also

`highlightStrength`, `brightness`