]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - shader_glsl.h
added USEREFLECTCUBE case to MODE_GENERIC, this disables use of texture
[xonotic/darkplaces.git] / shader_glsl.h
index 4e37e273f7feecbf4156cb08e695e8603c70a582..33cbb95e9587f651ded24ad4f8c0146532198c43 100644 (file)
 "      dp_FragColor = vec4(1.0, 1.0, 1.0, 1.0);\n"
 "#endif\n"
 "#ifdef USEDIFFUSE\n"
+"# ifdef USEREFLECTCUBE\n"
+"      // suppress texture alpha\n"
+"      dp_FragColor.rgb *= dp_texture2D(Texture_First, TexCoord1).rgb;\n"
+"# else\n"
 "      dp_FragColor *= dp_texture2D(Texture_First, TexCoord1);\n"
+"# endif\n"
 "#endif\n"
 "\n"
 "#ifdef USESPECULAR\n"