Shader.ProgID

Shader.ProgID

導入

v2.0

詳細

Parameter.ConnectFromProgIDメソッドを使用してシェーダを作成し直すのに使用できるStringID を戻します。

C#構文

// get accessor

String rtn = Shader.ProgID;

VBScript の例

'

'	This example illustrates how to recreate a wood texture

'	using shader ProgIDs

'

set grid = ActiveSceneRoot.AddGeometry("Cube","MeshSurface")

set mat = grid.AddMaterial("Phong")

set phong = mat.Surface.Source

LogMessage phong.ProgID

set color8mix1 = phong.ambient.ConnectFromProgID("Softimage.sib_color_8mix.1")

LogMessage color8mix1.ProgID

set color8mix2 = phong.diffuse.ConnectFromProgID("Softimage.sib_color_8mix.1")

LogMessage color8mix2.ProgID

set tex3d = color8mix1.color1.ConnectFromProgID("Softimage.txt3d-wood.1")

LogMessage tex3d.ProgID

color8mix2.color1.Connect tex3d