Manage Phong Shaders.
MFnPhongShader facilitates the creation and manipulation of dependency graph nodes representing Phong shaders.
#include <MFnPhongShader.h>
Public Member Functions |
|
virtual MFn::Type | type () const |
Function set type. |
|
virtual | ~MFnPhongShader () |
Destructor. |
|
MFnPhongShader () | |
Default constructor. |
|
MFnPhongShader (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
MObject | create (bool UIvisible=true, MStatus *ReturnStatus=NULL) |
Creates a new phong shader dependency graph
node and adds it to the dependency graph. |
|
float | cosPower (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "cosPower"
attribute of a phong shader node. |
|
MStatus | setCosPower (const float &cos_power) |
Sets the value of the "cosPower" attribute
of a shader node. |
|
MFnPhongShader (const MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
Protected Member Functions |
|
virtual const char * | className () const |
Class name. |
MFnPhongShader | ( | MObject & | object, |
MStatus * | ReturnStatus =
NULL |
||
) |
Constructor.
Class constructor that initializes the function set to the given MObject.
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
MFnPhongShader | ( | const MObject & | object, |
MStatus * | ReturnStatus =
NULL |
||
) |
Constructor.
Class constructor that initializes the function set to the given MObject.
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
MFn::Type type | ( | ) | const [virtual] |
const char * className | ( | ) | const [protected, virtual] |
Creates a new phong shader dependency graph node and adds it to the dependency graph.
If the UIvisible parameter is true, the new node will be connected to the shader classification node (which allows the UI to recognize the node as a shader). If UIvisible is false, the node will be created in isolation.
[in] | UIvisible | determines whether or not the new node will be connected to the shader classification node. |
[out] | ReturnStatus | return status |
Reimplemented from MFnLambertShader.
float cosPower | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Retrieves the value of the "cosPower" attribute of a phong shader node.
This attribute determines the size of specular highlights produced by the shader.
[out] | ReturnStatus | return status |
MStatus setCosPower | ( | const float & | cos_power | ) |
Sets the value of the "cosPower" attribute of a shader node.
[in] | cos_power | value to which the attribute will be set. |