Add r_skyfog cvar.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5409 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
2b82c8d0a9
commit
d6291b3ca7
2 changed files with 4 additions and 2 deletions
|
@ -4497,6 +4497,7 @@ YOU SHOULD NOT EDIT THIS FILE BY HAND
|
||||||
{QR_OPENGL, 110, "defaultskybox",
|
{QR_OPENGL, 110, "defaultskybox",
|
||||||
"!!permu FOG\n"
|
"!!permu FOG\n"
|
||||||
"!!samps reflectcube\n"
|
"!!samps reflectcube\n"
|
||||||
|
"!!cvardf r_skyfog=0.5\n"
|
||||||
"#include \"sys/defs.h\"\n"
|
"#include \"sys/defs.h\"\n"
|
||||||
"#include \"sys/fog.h\"\n"
|
"#include \"sys/fog.h\"\n"
|
||||||
|
|
||||||
|
@ -4515,7 +4516,7 @@ YOU SHOULD NOT EDIT THIS FILE BY HAND
|
||||||
"void main ()\n"
|
"void main ()\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
"vec4 skybox = textureCube(s_reflectcube, pos);\n"
|
"vec4 skybox = textureCube(s_reflectcube, pos);\n"
|
||||||
"gl_FragColor = vec4(fog3(skybox.rgb), 1.0);\n"
|
"gl_FragColor = vec4(mix(skybox.rgb, fog3(skybox.rgb), float(r_skyfog)), 1.0);\n"
|
||||||
"}\n"
|
"}\n"
|
||||||
"#endif\n"
|
"#endif\n"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
!!permu FOG
|
!!permu FOG
|
||||||
!!samps reflectcube
|
!!samps reflectcube
|
||||||
|
!!cvardf r_skyfog=0.5
|
||||||
#include "sys/defs.h"
|
#include "sys/defs.h"
|
||||||
#include "sys/fog.h"
|
#include "sys/fog.h"
|
||||||
|
|
||||||
|
@ -18,6 +19,6 @@ void main ()
|
||||||
void main ()
|
void main ()
|
||||||
{
|
{
|
||||||
vec4 skybox = textureCube(s_reflectcube, pos);
|
vec4 skybox = textureCube(s_reflectcube, pos);
|
||||||
gl_FragColor = vec4(fog3(skybox.rgb), 1.0);
|
gl_FragColor = vec4(mix(skybox.rgb, fog3(skybox.rgb), float(r_skyfog)), 1.0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue