]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - render.h
WarpZones:
[xonotic/darkplaces.git] / render.h
index 31a836723f011a404f9a92c0257a1238f70e07e7..aa84b231f0863b4db569a8ad88c9c1848b2ebaaa 100644 (file)
--- a/render.h
+++ b/render.h
@@ -477,10 +477,12 @@ typedef struct r_waterstate_waterplane_s
 {
        rtexture_t *texture_refraction;
        rtexture_t *texture_reflection;
+       rtexture_t *texture_camera;
        mplane_t plane;
        int materialflags; // combined flags of all water surfaces on this plane
        unsigned char pvsbits[(MAX_MAP_LEAFS+7)>>3]; // FIXME: buffer overflow on huge maps
        qboolean pvsvalid;
+       int camera_entity;
 }
 r_waterstate_waterplane_t;
 
@@ -493,6 +495,7 @@ typedef struct r_waterstate_s
 
        int waterwidth, waterheight;
        int texturewidth, textureheight;
+       int camerawidth, cameraheight;
 
        int maxwaterplanes; // same as MAX_WATERPLANES
        int numwaterplanes;