Shader.ShaderType

Introduced

v7.0

Description

Returns one of the siShaderType enum values representing the shader type.

C# Syntax

// get accessor

siShaderType rtn = Shader.ShaderType;

Examples

VBScript Example

NewScene , False

set cube = Application.ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" )

set mat = cube.AddMaterial( "Phong" )

set phong = mat.Shaders("Phong")

Application.LogMessage phong.ShaderType

' INFO : 1