]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
this patch adds a number of stereo viewing modes (shutter glasses and video glasses...
[xonotic/darkplaces.git] / client.h
index 870e6129d6f15d66ca0823692587527ed963fde4..8e040c95ce365473a4a9a27240d2a79032d80f5d 100644 (file)
--- a/client.h
+++ b/client.h
@@ -104,9 +104,9 @@ typedef struct rtlight_s
        vec3_t cullmins;
        vec3_t cullmaxs;
        // culling
-       vec_t cullradius;
+       //vec_t cullradius;
        // squared cullradius
-       vec_t cullradius2;
+       //vec_t cullradius2;
 
        // lightmap renderer stuff (remove someday!)
        // the size of the light
@@ -128,7 +128,9 @@ typedef struct rtlight_s
        shadowmesh_t *static_meshchain_light;
        // used for visibility testing (more exact than bbox)
        int static_numclusters;
-       int *static_clusterindices;
+       int static_numclusterpvsbytes;
+       int *static_clusterlist;
+       qbyte *static_clusterpvs;
 }
 rtlight_t;
 
@@ -585,6 +587,11 @@ extern cvar_t m_side;
 extern cvar_t r_draweffects;
 
 extern cvar_t cl_explosions;
+extern cvar_t cl_explosions_alpha_start;
+extern cvar_t cl_explosions_alpha_end;
+extern cvar_t cl_explosions_size_start;
+extern cvar_t cl_explosions_size_end;
+extern cvar_t cl_explosions_lifetime;
 extern cvar_t cl_stainmaps;
 
 // these are updated by CL_ClearState
@@ -747,6 +754,9 @@ typedef struct
        // view transform
        matrix4x4_t viewentitymatrix;
 
+       // which color components to allow (for anaglyph glasses)
+       int colormask[4];
+
        // fullscreen color blend
        float viewblend[4];