BaseLight

Inherited: NativeBehaviour

Description

Note: This class must be a superclass only and shouldn’t be created manually.

Public Methods

float

brightness () const

bool

castShadows () const

Vector4

color () const

const Matrix4 &

cropMatrix (int index)

int

lightType () const

void

setBrightness (const float brightness)

void

setCastShadows (const bool shadows)

void

setColor (const Vector4 color)

int

tilesCount () const

Static Methods

None

Methods Description

float BaseLight::brightness () const

Returns a brightness of emitting light.

See also setBrightness().


bool BaseLight::castShadows () const

Returns true if the light source can cast shadows; otherwise returns false.

See also setCastShadows().


Vector4 BaseLight::color () const

Returns a color of emitting light.

See also setColor().


const Matrix4 & BaseLight::cropMatrix (int index)

Returns the crop matrix at cascade index.


int BaseLight::lightType () const

Return a type of the light. Fot more details refer to BaseLight::LightType


void BaseLight::setBrightness (float brightness)

Changes a brightness of emitting light.

See also brightness().


void BaseLight::setCastShadows (bool shadows)

Enables or disables cast shadows ability for the light source.

See also castShadows().


void BaseLight::setColor (Vector4 color)

Changes a color of emitting light.

See also color().


int BaseLight::tilesCount () const

Returns number of shadow map atlas tiles required for this light source.