Struct SpotLight

Struct Documentation

struct SpotLight

Public Members

float attConst

attenuation = 1/(attConst + attLin * r + attQuad * r * r)

float attLin

attenuation = 1/(attConst + attLin * r + attQuad * r * r)

float attQuad

attenuation = 1/(attConst + attLin * r + attQuad * r * r)

float range

Lighting effect clipped for distance > range.

float diffuseIntensity

Diffuse intensity of light.

Color diffuseColor

Diffuse color of light.

Color ambientColor

Ambient color of light.

float spot

Increasing spot increases the angular attenuation wrt axis.

float angleRange

Lighting effect clipped for angle > angleRange.