What's New in Director 8.5 > Working with Models and Model Resources > Shaders > Properties of the standard shader |
![]() ![]() ![]() |
Properties of the standard shader
The standard shader makes the surface of a model appear in a photorealistic style. Use these properties to work with the standard shader:
Property Name |
Access |
Description |
Default |
---|---|---|---|
|
Get |
The string name of this shader. |
None |
|
Get and set |
A Lingo color object describing the surface's reaction to ambient light. |
|
|
Get and set |
A Lingo color object describing the surface's reaction to diffuse light. Ambient and diffuse color objects together describe a model resource's base color. |
|
|
Get and set |
A Lingo color object describing the surface's specular highlight color. This setting has an effect only if there are lights in the scene whose specular property is |
|
|
Get and set |
An integer between |
|
|
Get and set |
A Lingo color object describing the color of light this object seems to give off. This does not turn the surface using this shader into a light source; it just gives it the appearance of being one. |
|
|
Get and set |
An integer between |
|
|
Get and set |
This property controls whether or not the model is blended using alpha values or rendered as opaque. The default is |
|
|
Get and set |
This property can take the following values: When |
|
|
Get and set |
When |
|
|
Get and set |
A shader can use up to eight layers of textures. This eight-element list defines which texture is used for which layer. Get: Returns a list of texture objects, one per layer. Set: Specifies a texture object to be applied to all layers. An argument of |
|
|
Get and set |
A shader can use up to eight layers of textures. This property gives access to the texture at the indicated index position. |
|
|
Get and set |
This property allows access to the texture for the first layer. It is equivalent to An argument of |
|
|
Get and set |
Get: Returns the texture associated with the third layer. Set: Specifies a texture to be used in the third layer and applies the following values:
|
|
diffuseLightMap |
Get and set |
Get: Returns the texture associated with the second layer. Set: Specifies a texture to be used in the second layer and applies the following values:
|
|
|
Get and set |
Get: Returns the texture associated with the fifth layer. Set: Specifies a texture to be used in the fifth layer and applies the following values:
|
|
|
Get and set |
Get: Returns the texture associated with the fourth layer. Set: Specifies a texture to be used in the fourth layer and applies the following values:
|
|
|
Get and set |
This property allows access to the texture coordinate generation function used for a texture at the texture level and then to allows you to change how textures are applied to a model's surface. The property can take the following values:
|
|
|
Get and set |
Get: Returns a list of texture coordinate generation functions, one per layer. Set: Specifies texture coordinate generation modes to be applied to all layers. Possible values are as follows:
|
|
|
Get and set |
Access to the texture coordinate generation function for the first layer. Possible values are as follows:
|
|
|
Get and set |
Access to the texture coordinate generation transform associated with a specified layer. This transformation has effect only if the Use this property to change the orientation, offset, and scale of how the |
|
|
Get and set |
Controls the orientation of UV generation in model space. Get: Returns a list of texture coordinate generation transforms, one per layer. Set: Specifies a texture coordinate generation transform to be applied to all layers. |
|
|
Get and set |
Access to the texture coordinate generation transform for the first layer. Controls the orientation of the UV generation in model space. |
|
|
Get and set |
Access to the list of texture coordinate modifier transforms, one per texturing layer. The The |
Identity transform |
|
Get and set |
Access to the texture coordinate modifier transform associated with a specified layer. |
Identity transform |
|
Get and set |
Access to the texture coordinate modifier transform for the first layer. |
Identity transform |
|
Get and set |
Access to the blending function associated with a texture layer at the position indicated by Possible values are as follows:
For detailed information on all of these options, see blendFunctionList. |
|
|
Get and set |
Access to the list of blending functions, |
|
|
Get and set |
Access to the list of blending functions, |
|
|
Get and set |
Access to the blending source associated with a specified layer. When the Possible values are |
|
|
Get and set |
Access to the blending sources for each layer, providing that the blend function is set to Possible values are |
|
|
Get and set |
Access to the blending sources for the first layer, providing that the blend function is set to Possible values are |
|
|
Get and set |
The blending ratio used for a specific layer when the blend function is set to |
|
|
Get and set |
The blending ratio used for any layer when the blend function is set to |
|
|
Get and set |
The blending ratio used for the first layer when the blend function is set to |
|
|
Get and set |
Allows you to get or set the texture clamping behavior associated with a specified layer. Texture clamping refers to how a texture "clamps" to its shader. If the ratio of the texture to the shader is less than 1 to 1 and If the ratio of the texture to the shader is greater than 1 to 1 and |
|
|
Get and set |
Access to the list of texture clamping behaviors, one per layer. When set to Get: Returns a list of texture clamping behaviors, one per layer. Set: Specifies a texture clamping behavior to be applied to all layers. |
|
|
Get and set |
Access to the texture clamping behavior for the first layer. When set to |
|
![]() ![]() ![]() |