MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / rend_SetCoplanarPolygonOffset

Function rend_SetCoplanarPolygonOffset

renderer/HardwareOpenGL.cpp:2122–2129  ·  view source on GitHub ↗

Sets the hardware bias level for coplanar polygons This helps reduce z buffer artifacts

Source from the content-addressed store, hash-verified

2120// Sets the hardware bias level for coplanar polygons
2121// This helps reduce z buffer artifacts
2122void rend_SetCoplanarPolygonOffset(float factor) {
2123 if (factor == 0.0f) {
2124 dglDisable(GL_POLYGON_OFFSET_FILL);
2125 } else {
2126 dglEnable(GL_POLYGON_OFFSET_FILL);
2127 dglPolygonOffset(-1.0f, -1.0f);
2128 }
2129}
2130
2131// returns the direct draw object
2132void *rend_RetrieveDirectDrawObj(void **frontsurf, void **backsurf) {

Callers 2

RenderFogFacesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected