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

Function RenderLightGlows

Descent3/render.cpp:3520–3541  ·  view source on GitHub ↗

Renders all the lights glows for this frame

Source from the content-addressed store, hash-verified

3518}
3519// Renders all the lights glows for this frame
3520void RenderLightGlows() {
3521 if (!UseHardware)
3522 return;
3523 // Render all the glows for this mine
3524 rend_SetColorModel(CM_RGB);
3525 rend_SetLighting(LS_GOURAUD);
3526 rend_SetTextureType(TT_LINEAR);
3527 rend_SetAlphaType(AT_SATURATE_TEXTURE);
3528 rend_SetOverlayType(OT_NONE);
3529 rend_SetFogState(0);
3530 int count = 0;
3531
3532 for (int i = 0; i < MAX_LIGHT_GLOWS && count < Num_glows; i++) {
3533 if (LightGlows[i].flags & LGF_USED) {
3534 RenderSingleLightGlow(i);
3535 count++;
3536 }
3537 }
3538
3539 rend_SetZBufferWriteMask(1);
3540 rend_SetZBufferState(1);
3541}
3542
3543/*
3544// Sets fogzone start and end points

Callers 1

PostRenderFunction · 0.85

Calls 9

RenderSingleLightGlowFunction · 0.85
rend_SetColorModelFunction · 0.50
rend_SetLightingFunction · 0.50
rend_SetTextureTypeFunction · 0.50
rend_SetAlphaTypeFunction · 0.50
rend_SetOverlayTypeFunction · 0.50
rend_SetFogStateFunction · 0.50
rend_SetZBufferWriteMaskFunction · 0.50
rend_SetZBufferStateFunction · 0.50

Tested by

no test coverage detected