![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IFixedParameters graph node interface.
The IFixedParameters interface provides an easy way to define commonly used fixed parameters such as material color or material shininess, to control the appearance of renderable objects in conjunction with a given material.
Use the Graph::IColored base interface to set or get the predefined lighting component color values, such as ambient, diffuse, specular or emissive material properties.
See the Graph::IParameters base interface for additional information.
Murl.Graph.IFixedParameters.FIXED_PARAMETERS_FLAG_AMBIENT_COLOR_MODIFIED | |
Murl.Graph.IFixedParameters.FIXED_PARAMETERS_FLAG_DIFFUSE_COLOR_MODIFIED | |
Murl.Graph.IFixedParameters.FIXED_PARAMETERS_FLAG_SPECULAR_COLOR_MODIFIED | |
Murl.Graph.IFixedParameters.FIXED_PARAMETERS_FLAG_EMISSIVE_COLOR_MODIFIED | |
Murl.Graph.IFixedParameters.FIXED_PARAMETERS_FLAG_SHININESS_MODIFIED | |
Murl.Graph.IFixedParameters.FIXED_PARAMETERS_FLAG_COLOR_MODIFIED | |
Murl.Graph.IFixedParameters.FIXED_PARAMETERS_FLAG_MODIFIED |
Get the constant Graph::INode interface. This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.
Murl.Graph.INode GetNodeInterface()
Get the constant Graph::IParameters interface. This method returns a constant pointer to the node's Graph::IParameters interface, to be able to query common parameter properties.
Murl.Graph.IParameters GetParametersInterface()
Get the constant Graph::IFixedParameters container storing the object's parent. This method returns a constant pointer to the node's Graph::IFixedParameters container that stores an optional reference to another fixed parameters object, to query the object's parent.
Murl.Graph.IGenericNodeTarget.GraphIFixedParameters GetParentFixedParametersNodeTarget()
Get current flags.
Integer GetFixedParametersFlags()
Set the material shininess (specular exponent).
SetShininess(Number shininess)
shininess | The shininess value in the range from 0.0 to 128.0 |
Get the material shininess (specular exponent).
Number GetShininess()
Get the color value set for a given lighting component, modulated with an optional parent.
Murl.Color GetModulatedColor(Murl.IEnums.LightingComponent component)
component | The lighting component. |
Get the shininess modulated with an optional parent.
Number GetModulatedShininess()