Shader.ShaderType

導入

v7.0

詳細

シェーダタイプを表すsiShaderType列挙型の値の 1 つを戻します。

C#構文

// get accessor

siShaderType rtn = Shader.ShaderType;

VBScript の例

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