mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
5b7a426afe
Enclosed mvd recording in ifdefs, so it can be disabled at compile-time for any mods that don't want to have to deal with it. Removed the recorded players thing. Allow csqc to use EF_FULLBRIGHT. Fix cl_pure to attempt to actually download missing packages. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5303 fc73d0e0-1445-4013-8a0c-d673dee63da5
32 lines
693 B
GLSL
32 lines
693 B
GLSL
!!cvard_srgb_b r_floorcolor
|
|
!!cvard_srgb_b r_wallcolor
|
|
!!permu FOG
|
|
|
|
//this is for the '286' preset walls, and just draws lightmaps coloured based upon surface normals.
|
|
|
|
#include "sys/fog.h"
|
|
varying vec4 col;
|
|
#ifdef VERTEX_SHADER
|
|
attribute vec3 v_normal;
|
|
attribute vec2 v_lmcoord;
|
|
varying vec2 lm;
|
|
uniform vec4 e_lmscale;
|
|
void main ()
|
|
{
|
|
#ifdef LM
|
|
col = vec4(1.0);
|
|
#else
|
|
col = vec4(e_lmscale.rgb * ((v_normal.z < 0.73)?r_wallcolor:r_floorcolor), e_lmscale.a);
|
|
#endif
|
|
lm = v_lmcoord;
|
|
gl_Position = ftetransform();
|
|
}
|
|
#endif
|
|
#ifdef FRAGMENT_SHADER
|
|
uniform sampler2D s_t0;
|
|
varying vec2 lm;
|
|
void main ()
|
|
{
|
|
gl_FragColor = fog4(col * texture2D(s_t0, lm));
|
|
}
|
|
#endif
|