Manage Blinn shaders.
MFnBlinnShader facilitates creation and manipulation of dependency graph nodes representing Blinn shaders.
#include <MFnBlinnShader.h>
Public Member Functions |
|
virtual MFn::Type | type () const |
Function set type. |
|
virtual | ~MFnBlinnShader () |
Destructor. |
|
MFnBlinnShader () | |
Default constructor. |
|
MFnBlinnShader (MObject &object, MStatus *ReturnStatus=NULL) | |
Constructor. |
|
MObject | create (bool UIvisible=true, MStatus *ReturnStatus=NULL) |
Creates a new blinn shader dependency graph
node and adds it to the dependency graph. |
|
float | eccentricity (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "eccentricity"
attribute of a blinn shader node. |
|
MStatus | setEccentricity (const float &eccentricity) |
Sets the value of the "eccentricity"
attribute of a shader node. |
|
float | specularRollOff (MStatus *ReturnStatus=NULL) const |
Retrieves the value of the "specularRollOff"
attribute of a blinn shader node. |
|
MStatus | setSpecularRollOff (const float &specular_rolloff) |
Sets the value of the "specularRollOff"
attribute of a shader node. |
|
MFnBlinnShader (const MObject &object, MStatus *ReturnStatus=NULL) | |
NO SCRIPT SUPPORT. |
|
Protected Member Functions |
|
virtual const char * | className () const |
Class name. |
MFnBlinnShader | ( | 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 |
MFnBlinnShader | ( | const MObject & | object, |
MStatus * | ReturnStatus =
NULL |
||
) |
NO SCRIPT SUPPORT.
Class constructor that initializes the function set to the given MObject.
Constructor
[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 blinn 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 eccentricity | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Retrieves the value of the "eccentricity" attribute of a blinn shader node.
This attribute determines the size of the highlight produced by the shader.
[out] | ReturnStatus | return status |
MStatus setEccentricity | ( | const float & | eccentr | ) |
Sets the value of the "eccentricity" attribute of a shader node.
[in] | eccentr | value to which the attribute will be set. |
float specularRollOff | ( | MStatus * | ReturnStatus =
NULL |
) | const |
Retrieves the value of the "specularRollOff" attribute of a blinn shader node.
This attribute controls the increased oblique angle reflectivity of the shader.
[out] | ReturnStatus | return status |
MStatus setSpecularRollOff | ( | const float & | specular_rolloff | ) |
Sets the value of the "specularRollOff" attribute of a shader node.
[in] | specular_rolloff | value to which the attribute will be set. |