| 2796 | } |
| 2797 | } |
| 2798 | void DoneLightInstance() { |
| 2799 | ASSERT(Instance_light_cnt != 0); |
| 2800 | Instance_light_cnt--; |
| 2801 | |
| 2802 | if (Polymodel_light_type == POLYMODEL_LIGHTING_GOURAUD) |
| 2803 | *Polymodel_light_direction = Instance_light_stack[Instance_light_cnt]; |
| 2804 | |
| 2805 | if (Polymodel_use_effect && Polymodel_effect.type & PEF_FOGGED_MODEL) { |
| 2806 | Polymodel_fog_plane = Instance_fog_plane_stack[Instance_light_cnt]; |
| 2807 | Polymodel_fog_portal_vert = Instance_fog_portal_vert_stack[Instance_light_cnt]; |
| 2808 | } |
| 2809 | |
| 2810 | if (Polymodel_use_effect && Polymodel_effect.type & (PEF_SPECULAR_MODEL | PEF_SPECULAR_FACES)) |
| 2811 | Polymodel_specular_pos = Instance_specular_pos[Instance_light_cnt]; |
| 2812 | |
| 2813 | if (Polymodel_use_effect && (Polymodel_effect.type & PEF_BUMPMAPPED)) |
| 2814 | Polymodel_bump_pos = Instance_bump_pos[Instance_light_cnt]; |
| 2815 | } |
| 2816 | |
| 2817 | // Draws a polygon model to the viewport |
| 2818 | // Normalized_time is an array of floats from 0 to 1 that represent how far into |
no outgoing calls
no test coverage detected