cee::geo::EffectFrontAndBackOpacity
-
class EffectFrontAndBackOpacity : public Effect
Effect describing the opacity to be used when drawing each side of the associated triangle based part data.
May be overridden by the following effects if found further up the stack:
Any other EffectFrontAndBackOpacity
Supported by the following part data:
See also
Part, Effect, and PartSettings
Public Functions
-
EffectFrontAndBackOpacity()
Constructs an empty effect.
-
EffectFrontAndBackOpacity(float frontOpacity, float backOpacity)
Constructs an effect.
-
virtual Type type() const
Returns Effect::FRONT_AND_BACK_OPACITY.
-
float frontOpacity() const
Returns how transparent the front face of the part is.
1.0f is opaque 0.0f is max transparency
-
float backOpacity() const
Returns how transparent the back face of the part is.
1.0f is opaque 0.0f is max transparency
-
void setOpacity(float frontOpacity, float backOpacity)
Specifies how transparent the front and back faces of the part are.
1.0f is opaque 0.0f is max transparency