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:
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.