Function packed_light_code
Source pub fn packed_light_code(kind: LightType) -> f32
Expand description
Returns the f32 discriminator both shaders switch on for a
LightType.
§Arguments
LightType - The source light.
§Returns
f32 - The shader discriminator: directional 0.0, point 1.0, spot
2.0.