CgFX shader

The compiled CgFX plug-in in Maya lets you create hardware shaders. Previously, you may have downloaded the Cg / CgFx libraries from nVidia®. For more information, see About hardware shaders.

CgFX shaders are only supported in OpenGL - Legacy display mode. See Viewport 2.0 Rendering engine.

For information on how to create a CgFX shader, see Create a CgFX shader.

Note:

This plug-in uses Cg 3.0.015. The cg compiler (cgc) and all dlls are included in the bin directory of Maya.

Older effects support a different syntax .fx (MS) files than the current ones: .cgfx. Because Cg is a superset of HLSL, CgFX 3.0.015 exposes all the capabilities of Cg (Interfaces and unsized arrays). Therefore, CgFX 3.0.015 has a format called .cgfx that allows developers to program in the Cg language.

If you've installed an older version of CgFX, you must uninstall it or disable the environment variables that are set with the install.

Related topics