Table of Contents

Interface IEffectLights

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll

The common effect light rendering parameters.

public interface IEffectLights

Properties

AmbientLightColor

The floating point ambient light color.

Vector3 AmbientLightColor { get; set; }

Property Value

Vector3

DirectionalLight0

Returns the first directional light.

DirectionalLight DirectionalLight0 { get; }

Property Value

DirectionalLight

DirectionalLight1

Returns the second directional light.

DirectionalLight DirectionalLight1 { get; }

Property Value

DirectionalLight

DirectionalLight2

Returns the third directional light.

DirectionalLight DirectionalLight2 { get; }

Property Value

DirectionalLight

LightingEnabled

Toggles the rendering of lighting.

bool LightingEnabled { get; set; }

Property Value

bool

Methods

EnableDefaultLighting()

Initializes the lights to the standard key/fill/back lighting rig.

void EnableDefaultLighting()