]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - render.h
moved pants to 7, reflectmask to 5, reflectcube to 6, shadowmaportho to 15
[xonotic/darkplaces.git] / render.h
index b7e8f853e4d8c38f51c1563b87486a7cb4c411bd..d5c8a7bdfcc3da95254da5582693627c47c85e4c 100644 (file)
--- a/render.h
+++ b/render.h
@@ -195,6 +195,12 @@ extern cvar_t r_smoothnormals_areaweighting;
 
 extern cvar_t r_test;
 
+extern cvar_t r_texture_convertsRGB_2d;
+extern cvar_t r_texture_convertsRGB_skin;
+extern cvar_t r_texture_convertsRGB_cubemap;
+extern cvar_t r_texture_convertsRGB_skybox;
+extern cvar_t r_texture_convertsRGB_particles;
+
 #include "gl_backend.h"
 
 extern rtexture_t *r_texture_blanknormalmap;
@@ -427,7 +433,7 @@ typedef enum gl20_texunit_e
        // material properties for a colormapped material
        // conflicts with secondary material
        GL20TU_PANTS = 4,
-       GL20TU_SHIRT = 5,
+       GL20TU_SHIRT = 7,
        // fog fade in the distance
        GL20TU_FOGMASK = 8,
        // compiled ambient lightmap and deluxemap
@@ -446,6 +452,9 @@ typedef enum gl20_texunit_e
        GL20TU_SHADOWMAPCUBE = 11,
        GL20TU_SHADOWMAP2D = 11,
        GL20TU_CUBEPROJECTION = 12,
+       // orthographic-projection shadowmapping
+       GL20TU_SHADOWMAPORTHORECT = 15,
+       GL20TU_SHADOWMAPORTHO2D = 15,
        // rtlight prepass data (screenspace depth and normalmap)
        GL20TU_SCREENDEPTH = 13,
        GL20TU_SCREENNORMALMAP = 14,
@@ -453,8 +462,8 @@ typedef enum gl20_texunit_e
        GL20TU_SCREENDIFFUSE = 11,
        GL20TU_SCREENSPECULAR = 12,
        // fake reflections
-       GL20TU_REFLECTMASK = 14,
-       GL20TU_REFLECTCUBE = 15
+       GL20TU_REFLECTMASK = 5,
+       GL20TU_REFLECTCUBE = 6
 }
 gl20_texunit;