Represents the texture applied to a shader.
You can create a reference to a texture by using the texture property of the 3D Member object. The texture property gets the texture at a specified index position in the list of textures. In Lingo, you use the texture property directly from the 3D Member object to create a reference. In JavaScript syntax, you must use the getPropRef() method to create a reference.
The following example creates a reference to the first texture of the 3D cast member triangle and assigns it to the variable myTexture.
-- Lingo syntax
myTexture = member("triangle").texture[1]
// JavaScript syntax
var myTexture = member("triangle").getPropRef("texture", 1);