The use of the CgFx shader is no longer recommended as it is based on legacy technology. Use the GLSL shader instead.
Known limitations for the CgFX shader include:
- Only .cgfx files and not .cg are supported
- Pre and post effects (for example, full-screen effects, global effects, multi-pass effects)
- Pass scripting
- Cg Interfaces
- Time semantic: When using a shader that moves with time, you must refresh the scene in order to see the animation, for example, by tumbling the camera.
-
CgFX shaders are only supported in the OpenGL - Legacy and OpenGL - Core Profile (Compatibility) display modes. See Viewport 2.0 Rendering engine.
Important information about the CG language including the limitations of the CgFX plug-in are available on the nVidia website (www.developer.nvidia.com), especially https://developer.nvidia.com/cg-toolkit.
Shaders that deform geometry are not supported.
You must use an nVidia graphics card if your CgFX shader utilizes nVidia specific profiles. Otherwise, you will not be able to preview these shaders in the scene view.