]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_shadow.h
Changed bouncegrid to use its own buffers (Mem_Alloc) instead of R_FrameData_Alloc...
[xonotic/darkplaces.git] / r_shadow.h
index 30403f4b623de40e25bf758e53405855f616258c..f59edaa77242638ed03bbf37e6b353be3b5bc002 100644 (file)
@@ -86,7 +86,11 @@ typedef struct r_shadow_bouncegrid_state_s
        // per-frame data that is very temporary
        int numsplatpaths;
        struct r_shadow_bouncegrid_splatpath_s *splatpaths;
-       float *highpixels;
+       int highpixels_index; // which one is active - this toggles when doing blur
+       float *highpixels; // equals blurpixels[highpixels_index]
+       float *blurpixels[2];
+       unsigned char *u8pixels; // temporary processing buffer when outputting to rgba8 format
+       unsigned short *fp16pixels; // temporary processing buffer when outputting to rgba16f format
 }
 r_shadow_bouncegrid_state_t;