]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
added r_shadow_bouncegrid 2 which disables rtlights and just renders the
[xonotic/darkplaces.git] / gl_rmain.c
index 2c5eb11caa4c868a3b5dfc07dd181309c4c71f46..c41c274598821190b2900dfff18126c05ddd2cbd 100644 (file)
@@ -6686,6 +6686,8 @@ R_RenderView
 ================
 */
 int dpsoftrast_test;
+extern void R_Shadow_UpdateBounceGridTexture(void);
+extern cvar_t r_shadow_bouncegrid;
 void R_RenderView(void)
 {
        matrix4x4_t originalmatrix = r_refdef.view.matrix, offsetmatrix;
@@ -6761,6 +6763,10 @@ void R_RenderView(void)
        }
        r_refdef.view.clear = true;
 
+       R_Shadow_UpdateBounceGridTexture();
+       if (r_timereport_active && r_shadow_bouncegrid.integer)
+               R_TimeReport("bouncegrid");
+
        // this produces a bloom texture to be used in R_BlendView() later
        if (r_bloomstate.hdr)
        {