Shader.ProgID
 
 
 

Shader.ProgID

Introduced

v2.0

Description

Returns a String id that can be used to recreate the shader using the Parameter.ConnectFromProgID method.

C# Syntax

// get accessor
String rtn = Shader.ProgID;

Examples

VBScript Example

'
'       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