MaterialSetTransparency Class Reference
Action to change this instance transparency. More...
Inheritance diagram for MaterialSetTransparency:
Public Member Functions | |
MaterialSetTransparency (const OpenViBE::Kernel::IKernelContext &rKernelContext, Ogre::Real transparency) | |
The contructor stores the argument. | |
virtual | ~MaterialSetTransparency () |
Destructor. | |
Protected Attributes | |
Ogre::Real | _transparency |
The argument. It is given to the function. |
Detailed Description
Action to change this instance transparency.
- Parameters:
-
transparency The new transparency. Values will be clamped to [0.0f..1.0f].
- Note:
- This changes transparency. A value of 0 means full opacity, while 1 means full transparency (invisible)
- If transparency equals 0, it will use the original material instead of the copy (the copy is mandatory transparent, and thus might be slower than the original).