What's New in Director 8.5 > Working with Models and Model Resources > Shaders > Properties of the painter shader

 

Properties of the painter shader

The #painter shader gives the model a painted effect. Use these properties to work with the painter shader:

Property

Access

Description

Default

name

Get and set

Name of shader

None

style

Get and set

Possible values:

#toon: sharp transitions between available colors

#gradient: smooth transitions between available colors

#blackAndWhite: sharp transitions between black and white

#gradient

colorSteps

Get and set

Number of color steps used for lighting calculations

2

shadowPercentage

Get and set

Percentage of lighting intensity that is the threshold between highlight and shadow

50

highlightPercentage

Get and set

Percentage of lighting steps to be treated as highlight

50

shadowStrength

Get and set

Factor controlling darkness of shadowed areas

1.0

highlightStrength

Get and set

Factor controlling brightness of highlighted areas

1.0