Struct PointLightInfo

Struct Documentation

struct PointLightInfo

Used to bind a point light to the Pixel shader.

Public Members

Color ambientColor = {0.0f, , , }
Color diffuseColor = {0.0f, , , }
float diffuseIntensity = 0.0f
float attConst = 1.0f

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

float attLin = 0.045f

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

float attQuad = 0.0075f

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

Vector3 lightPos = {0.0f, , }

Is filled with the TransformComponent while rendering.

float range = 0.0f

Lighting effect clipped for distance > range.