ShadowBiasConfig Type
Global shadow bias configuration.
MonoGame-specific:SlopeScaleBias maps to
RasterizerState.SlopeScaleDepthBias
(native polygon-offset on both DX11 and OpenGL — replaces raylib's GLSL
dFdx/dFdy shader math, which has no SM3.0 equivalent).
The per-type bias maps to RasterizerState.DepthBias.
Record fields
| Record Field |
Description
|
Full Usage:
DirectionalBias
Field type: float32
|
Bias for directional light shadows. Default 0.002.
|
Full Usage:
PointBias
Field type: float32
|
Bias for point light shadows. Default 0.01.
|
Full Usage:
SlopeScaleBias
Field type: float32
|
Slope-scale bias multiplier (native RasterizerState). Default 0.0005.
|
Full Usage:
SpotBias
Field type: float32
|
Bias for spot light shadows. Default 0.001.
|
Mibo