pops the old context
| 587 | |
| 588 | // pops the old context |
| 589 | void 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 |
| 600 | void ApplyLightingToSubmodel(object *obj, poly_model *pm, bsp_info *sm, float light_dist, float red_scale, |
no outgoing calls
no test coverage detected