cee::geo::EffectLighting

class EffectLighting : public Effect

Effect describing if the associated triangle based part data should be lighted or not.

May be overridden by the following effects if found further up the stack:

  • Any other EffectLighting

Supported by the following part data:

See also

Part, Effect, and PartSettings

Public Functions

EffectLighting()

Constructs an empty effect.

EffectLighting(bool enableLight)

Constructs an effect.

virtual Type type() const

Returns Effect::LIGHTING.

virtual PtrRef<Effect> clone()

Clones the effect.

bool lighting() const

Returns true if the lighting is enabled.

void setLighting(bool enable)

Turns the light on/off.