Header menu logo Mibo

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

DirectionalBias

Full Usage: DirectionalBias

Field type: float32

Bias for directional light shadows. Default 0.002.

Field type: float32

PointBias

Full Usage: PointBias

Field type: float32

Bias for point light shadows. Default 0.01.

Field type: float32

SlopeScaleBias

Full Usage: SlopeScaleBias

Field type: float32

Slope-scale bias multiplier (native RasterizerState). Default 0.0005.

Field type: float32

SpotBias

Full Usage: SpotBias

Field type: float32

Bias for spot light shadows. Default 0.001.

Field type: float32

Type something to start searching.