# 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:

  - DataIndexedTriangles
  - DataTriangleFan
  - DataTriangleStrip

  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.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Desktop or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...