You can follow these steps to override a Maya shader in the viewport using a hardware shader, such as a CgFX shader or an HLSL shader. For more information on hardware shaders, see Work with hardware shaders.
Before you begin, you should first select Window > Settings/Preferences > Plug-in Manager and ensure that the shader plug-in (for example, CgFX or HLSL shader plug-in) is loaded.