Sets the fog state to TRUE or FALSE
| 1543 | |
| 1544 | // Sets the fog state to TRUE or FALSE |
| 1545 | void 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 |
| 1558 | void rend_SetFogBorders(float nearz, float farz) { |
no outgoing calls
no test coverage detected