LightingParameters
Description
- Derived from
-
RenderEffectParameters abstract
Shared render effect parameters for the scene lighting.
The following low-level render effect parameter slots are always defined:
-
'g_edgeFixup', RenderEffectParameterType.Float, mapped to EdgeFixup.
-
'g_environment', RenderEffectParameterType.TextureCube, mapped to EnvironmentMap.
-
'g_environmentScale', RenderEffectParameterType.Float, mapped to EnvironmentScale.
-
'g_horizon', RenderEffectParameterType.Float, mapped to Horizon.
-
'g_lightSpace', RenderEffectParameterType.Matrix3x3, mapped to transpose of LightSpace.
-
'g_lighting', RenderEffectParameterType.Vector4, mapped to Lighting.
The following low-level render effect parameter slots are omitted if FlagNoShading is present:
-
'g_fogDistance', RenderEffectParameterType.Float, mapped to FogDistance.
-
'g_lightEnable', RenderEffectParameterType.Float, mapped to Enabled.
-
'g_lightVector', RenderEffectParameterType.Vector3, mapped to LightVector.
-
'g_mipmap', RenderEffectParameterType.Vector3, mapped to Mipmap.
Public / Constants
Public / Attributes
EdgeFixup
The cubemap edge fixup (coordinate warp during cubemap creation and before sampling).
1 := disabled 1 - 0.5 / nh := enabled
where nh
is the cubemap size, divided by two.
Defaults to false
.
- See also
LightSpace
The orthogonal matrix that transforms from light-space to world-space.
Defaults to Mat3F.Identity.
- See also
LightVector
Unit-length direction vector of prominent light source, in light-space (see LightSpace).
Defaults to (0,-1,0).