The MPxMaterialInformation class is a way for users to override the viewport representation of shaders. The viewport uses a simple phong model for display in the viewport. With this class users can provide their own values for the phong shading parameters.
Called by Maya to when an incoming connection is made to plug on the shader.
This method tells Maya if connection should be treated as a to a texture. If the connection is treated as a texture the Maya will bake the properties of the source plug for display in the viewport. Currently only one channel/plug on the shader can be treated as a texture.
Parameters
[in]
plug
the plug that was connected
Returns
true if connection should be treated as a texture, false otherwise