@@ -1111,7 +1111,7 @@ void model_render_buffers(model_draw_list* scene, model_material *rendering_mate
11111111 texture_maps[TM_SPEC_GLOSS_TYPE ] = model_interp_get_texture (&tmap->textures [TM_SPEC_GLOSS_TYPE ], base_frametime);
11121112 }
11131113
1114- if ((Detail. lighting > 2 ) && ( detail_level < 2 ) ) {
1114+ if (detail_level < 2 ) {
11151115 // likewise, etc.
11161116 texture_info *norm_map = &tmap->textures [TM_NORMAL_TYPE ];
11171117 texture_info *height_map = &tmap->textures [TM_HEIGHT_TYPE ];
@@ -1143,10 +1143,10 @@ void model_render_buffers(model_draw_list* scene, model_material *rendering_mate
11431143 if (debug_flags & MR_DEBUG_NO_DIFFUSE ) texture_maps[TM_BASE_TYPE ] = -1 ;
11441144 if (debug_flags & MR_DEBUG_NO_GLOW ) texture_maps[TM_GLOW_TYPE ] = -1 ;
11451145 if (debug_flags & MR_DEBUG_NO_SPEC ) texture_maps[TM_SPECULAR_TYPE ] = -1 ;
1146- if (!(debug_flags & MR_DEBUG_NO_NORMAL )) texture_maps[TM_NORMAL_TYPE ] = model_interp_get_texture (norm_map, base_frametime);
1147- if (!(debug_flags & MR_DEBUG_NO_HEIGHT )) texture_maps[TM_HEIGHT_TYPE ] = model_interp_get_texture (height_map, base_frametime);
1148- if (!(debug_flags & MR_DEBUG_NO_AMBIENT )) texture_maps[TM_AMBIENT_TYPE ] = model_interp_get_texture (ambient_map, base_frametime);
11491146 if (!(debug_flags & MR_DEBUG_NO_MISC )) texture_maps[TM_MISC_TYPE ] = model_interp_get_texture (misc_map, base_frametime);
1147+ if (!(debug_flags & MR_DEBUG_NO_NORMAL ) && Detail.lighting > 0 ) texture_maps[TM_NORMAL_TYPE ] = model_interp_get_texture (norm_map, base_frametime);
1148+ if (!(debug_flags & MR_DEBUG_NO_AMBIENT ) && Detail.lighting > 0 ) texture_maps[TM_AMBIENT_TYPE ] = model_interp_get_texture (ambient_map, base_frametime);
1149+ if (!(debug_flags & MR_DEBUG_NO_HEIGHT ) && Detail.lighting > 1 ) texture_maps[TM_HEIGHT_TYPE ] = model_interp_get_texture (height_map, base_frametime);
11501150 }
11511151 } else {
11521152 alpha = forced_alpha;
@@ -1810,7 +1810,7 @@ void model_render_glowpoint(int point_num, vec3d *pos, matrix *orient, glow_poin
18101810 }
18111811 }
18121812
1813- if ( Deferred_lighting && gpo && gpo->is_lightsource ) {
1813+ if ( Detail. lighting > 3 && Deferred_lighting && gpo && gpo->is_lightsource ) {
18141814 if ( gpo->lightcone ) {
18151815 vec3d cone_dir_rot;
18161816 vec3d cone_dir_model;
0 commit comments