Geometry Shader Presets
 
 
 

Geometry Shader Presets

List of available Geometry Shader presets. Geometry shaders are evaluated before rendering starts. This allows the shader to introduce procedural geometry into the scene. For example, a geometry shader might be used to create feathers on a bird or leaves on a tree.

For more information, see the user guide

Note See Shader Presets for a list of different shader preset types. Also see Alphabetical Listing of All Shader Presets for a complete list of available shaders.
Preset Shaders
Geometry\Geo_Cube.Preset Cube Maker

See the Softimage.sib_cuber.1.0 shader definition reference page.

For an example of how to use this preset, see the ConnectGeoShader Example


ConnectGeoShader Example

function ConnectGeoShader( in_preset )
{
        NewScene( null, false );
        var obj = Application.ActiveSceneRoot.AddPrimitive("GeoShader");
        Application.Selection.SetAsText(obj);
        CreateShaderFromPreset(in_preset, "GeoShader.GeoShader");
        var oShader = SIConnectShaderToCnxPoint("GeoShader.GeoShader.Geo_Cube.out", 
                "GeoShader.GeoShader.shader", false);
        if (!oShader) { return null; }
        return (oShader.Type == "XSICollection") ? oShader(0) : oShader;
}