From a66859f09cb52c17632444b4a3c6e4c6dda050d1 Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Wed, 14 May 2014 18:57:12 +0200 Subject: [PATCH] Only use 2048^2 shadow maps for cascaded shadow mapping --- neo/renderer/tr_frontend_addlights.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neo/renderer/tr_frontend_addlights.cpp b/neo/renderer/tr_frontend_addlights.cpp index 726ee711..d3fa8346 100644 --- a/neo/renderer/tr_frontend_addlights.cpp +++ b/neo/renderer/tr_frontend_addlights.cpp @@ -330,8 +330,8 @@ static void R_AddSingleLight( viewLight_t* vLight ) lod = numLods - 1; } - // never give ultra quality for point lights - if( lod == 0 && light->parms.pointLight && !light->parms.parallel ) + // 2048^2 ultra quality is only for cascaded shadow mapping with sun lights + if( lod == 0 && !light->parms.parallel ) { lod = 1; }