Texture:setCompareMode
Sets the compare mode for a texture. This is only used for "shadow samplers", which are uniform variables in shaders with type sampler2DShadow
. Sampling a shadow sampler uses a sort of virtual depth test, and the compare mode of the texture is used to control how the depth test is performed.
Texture:setCompareMode(compareMode)
Arguments
Name | Type | Default | Description |
compareMode | CompareMode | nil | The new compare mode. Use nil to disable the compare mode.
|
Returns
Nothing
See also
lovr.graphics.setDepthTest
Texture:getCompareMode
Texture