# cee::geo::EffectFrontAndBackColor

class `EffectFrontAndBackColor` : public Effect

  Effect describing the colors 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:

  - EffectColor (Triangle based Data only)
  - EffectTexture
  - Any other EffectFrontAndBackColor

  Supported by the following part data:

  - DataIndexedTriangles
  - DataTriangleFan
  - DataTriangleStrip

  See also

  Part, Effect, and PartSettings

  Public Functions

  `EffectFrontAndBackColor`()

    Constructs an empty effect.

  `EffectFrontAndBackColor`(const Color3f &frontColor, const Color3f &backColor)

    Constructs an effect.

  virtual Type `type`() const

    Returns Effect::FRONT_AND_BACK_COLOR.

  virtual PtrRef<Effect> `clone`()

    Clone the effect.

  const Color3f &`frontColor`() const

    Returns the front color of the part.

  const Color3f &`backColor`() const

    Returns the back color of the part.

  void `setColor`(const Color3f &frontColor, const Color3f &backColor)

    Specifies the front and back colors of the part.

  float `ambientIntensity`() const

    Returns the ambient intensity of the front and back colors.

    1.0f is max intensity 0.0f is min intensity

    Note! Ignored for OpenGL Fixed Function pipeline

    See also

    setAmbientIntensity

  void `setAmbientIntensity`(float intensity)

    Specifies the ambient intensity of the front and back colors.

    1.0f is max intensity 0.0f is min intensity

    Note! Ignored for OpenGL Fixed Function pipeline

    See also

    ambientIntensity

  float `specularIntensity`() const

    Returns the specular intensity of the front and back colors.

    1.0f is max intensity 0.0f is min intensity

    Note! Ignored for OpenGL Fixed Function pipeline

    See also

    setSpecularIntensity

  void `setSpecularIntensity`(float intensity)

    Specifies the specular intensity of the front and back colors.

    1.0f is max intensity 0.0f is min intensity

    Note! Ignored for OpenGL Fixed Function pipeline

    See also

    specularIntensity

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Desktop in your own language, 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...