Struct PointLightInfo¶
Defined in File constant_buffer.h
Struct Documentation¶
-
struct
PointLightInfo
¶ Used to bind a point light to the Pixel shader.
Public Members
-
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.
-
float