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

Function DoneLightingInstance

Descent3/lighting.cpp:589–597  ·  view source on GitHub ↗

pops the old context

Source from the content-addressed store, hash-verified

587
588// pops the old context
589void DoneLightingInstance() {
590 Light_instance_depth--;
591
592 ASSERT(Light_instance_depth >= 0);
593
594 Light_position = Light_instance_stack[Light_instance_depth].p;
595 if (Use_light_direction)
596 Light_direction = Light_instance_stack[Light_instance_depth].dir;
597}
598
599// Applies lighting to a submodel and all its children
600void ApplyLightingToSubmodel(object *obj, poly_model *pm, bsp_info *sm, float light_dist, float red_scale,

Callers 2

ApplyLightingToSubmodelFunction · 0.85
ApplyLightingToObjectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected