What's New in Director 8.5 > The 3D Cast Member > Shaders |
![]() ![]() ![]() |
Shaders
A shader defines the basic appearance of a model's surface. You apply textures to shaders. The standard shader is photorealistic; here are some of the other available shaders:
![]() |
|
![]() |
|
![]() |
|
The following commands and properties can be used to perform basic shader operations:
Command |
Function |
Returns |
---|---|---|
|
Returns the number of shader objects included in the cast member. |
Integer. |
|
Returns the shader named |
Returns the shader object named |
|
Returns the shader at the designated position in the index. The index number can change if shaders are added or deleted. |
Returns the shader object at that index number if it exists. Returns |
|
Creates a new shader and adds it to the shader object list. The |
Returns a new shader object with a unique name. If the name isn't unique, returns a Lingo error. |
|
Deletes the shader named |
|
|
Deletes the shader with the given index number. Lingo references to this shader persist but can do nothing. |
|
![]() ![]() ![]() |