GLDECAL
GLDECAL is a computer graphics technique used for applying decals to surfaces in 3D environments. It is commonly implemented in OpenGL applications to create effects such as bullet holes, scorch marks, bloodstains, or other surface details that need to be applied dynamically during runtime. The technique works by rendering a textured polygon with transparency directly onto existing surfaces without modifying the underlying geometry.
GLDECAL functions by temporarily disabling depth testing for the decal polygons while maintaining depth writes, allowing
The implementation typically involves creating textured quads that are positioned precisely on surfaces and oriented to