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

Function rend_SetFogState

renderer/HardwareOpenGL.cpp:1545–1555  ·  view source on GitHub ↗

Sets the fog state to TRUE or FALSE

Source from the content-addressed store, hash-verified

1543
1544// Sets the fog state to TRUE or FALSE
1545void rend_SetFogState(int8_t state) {
1546 if (state == gpu_state.cur_fog_state)
1547 return;
1548
1549 gpu_state.cur_fog_state = state;
1550 if (state == 1) {
1551 dglEnable(GL_FOG);
1552 } else {
1553 dglDisable(GL_FOG);
1554 }
1555}
1556
1557// Sets the near and far plane of fog
1558void rend_SetFogBorders(float nearz, float farz) {

Callers 4

RenderTerrainFunction · 0.50
PostRenderFunction · 0.50
RenderMineFunction · 0.50
RenderLightGlowsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected