]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.h
Don't set MATERIALFLAG_NOSHADOW on SKY materials. They need to cast shadows to preve...
[xonotic/darkplaces.git] / model_shared.h
index 93ea94237dfde0bb824e571f9a7918759c39af20..6184dc292e80fc2c626a2ed90b48989eae83dc3f 100644 (file)
@@ -636,6 +636,10 @@ typedef struct texture_s
        int q2value;
        int q2contents;
 
        int q2value;
        int q2contents;
 
+       // q1qsp
+       /// this points to a variant of the sky texture that has MATERIALFLAG_NOSHADOW, for the e1m5 logo shadow trick.
+       struct texture_s *skynoshadowtexture;
+
        // reflection
        float reflectmin; // when refraction is used, minimum amount of reflection (when looking straight down)
        float reflectmax; // when refraction is used, maximum amount of reflection (when looking parallel to water)
        // reflection
        float reflectmin; // when refraction is used, minimum amount of reflection (when looking straight down)
        float reflectmax; // when refraction is used, maximum amount of reflection (when looking parallel to water)