Struct SpotLightInfo

Struct Documentation

struct SpotLightInfo

Used to bind a spot light to the Pixel shader.

Public Members

Color ambientColor = {0.05f, , , }
Color diffuseColor = {1.0f, , , }
float diffuseIntensity = 0.0f
float attConst = 1.0f
float attLin = 0.045f
float attQuad = 0.0075f
Vector3 lightPos = {0.0f, , }
float range = 0.0f
Vector3 direction

Direction of axis of light cone.

float spot

Increasing spot increases the angular attenuation wrt axis.

float angleRange

Lighting effect clipped for angle > angleRange.

float pad[3]