DarkBASIC Professional Help File

DX11 SET RASTERIZER STATE SLOPE SCALED DEPTH BIAS

Sets a factor that is used in the depth bias calculations for polygons to take the slope of the rendered polygon relative to the
view direction into account. This will have the effect of giving a larger depth bias to the polygon if it is viewed edge-on and none
if it is facing the rendering camera directly. Normally used for alleviating visual artifacts in shadow mapping. The slope is
multiplied by the value set by this function so it essentially sets the strength of the slope scaled depth bias.

Syntax

    DX11 SET RASTERIZER STATE SLOPE SCALED DEPTH BIAS rasterState, scalar

Parameters

    rasterState

> Dword
> The rasterizer state to set the slope scaled depth bias factor of.

    scalar

> Float
> The scalar to multiply the slope scaled depth bias for each polygon by.

Returns

This function does not return a value.

See also

RASTERIZERSTATE Functions Menu
DX11 Function Categories