CgProgram
 
 
 

DEPRECATED. This shader is unsupported, but it may still get installed with Softimage to provide compatibility with older scenes that use it. It is recommended that you replace unsupported shaders in your scenes with equivalent shaders from the current Softimage shader library.

Category: RealTime > Cg > Cg Program

Shader Type: RealTime (RTShader)

Output: RealTime

Display Mode: OpenGL

The Cg program shader builds and compiles a Cg program.

Build

Sets the build options for your Cg program:

  • Disable the program.

  • Compile the program without executing it.

  • Compile and execute the program.

Debug messages

Enables debug messages. Compilation results are logged and available from the script editor's log window.

To open the script editor, click the script icon at the bottom of the Softimage interface.

Profile

The Profile options let you choose the type of program you want to execute. This is where you specify which hardware you are targeting and whether it's a vertex or a pixel (fragment) program.

If you are not specifically targeting nVidia hardware, you should choose the ARB types.

Cg Program

Enter the code for your vertex shader and fragment shader in the text editor.

The text editor supports text customization (font, color, size), syntax styling, folding (hiding blocks such as functions and subroutines), auto-completion and highlighting for keywords. You can also implement this text editor widget in your own plug-ins.