⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

Tex.SampleComp

TexSampleComp SampleComp{ get set }

Description

When sampling from a texture with comparison enabled, the sampler compares the sampled texel value against a reference value and returns a 0 or 1 based on the result. This is primarily useful for shadow mapping techniques, where a depth texture is sampled to determine if a surface is in shadow.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!