mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-14 08:21:05 +00:00
0f7bbfcf0e
Add separate cl_movement cvar to enable/disable reporting input sequences to DP servers (which use different pathways). Does not affect other protocols. This is separate from cl_nopred but will usually have the same result in the long run. Fixed movevalues for DPP7 clients, if they try using prediction they should now (mostly) get the same values that DP normally uses for QW servers. Reworked sky overrides somewhat. Now uses skyboxes where possible. Fixed dpcompat_makeshitup a little, for better compat. Fixed echo $foo$bar not exanding bar. Try to fix the meanings of vid_hardwaregamma. Fixes for builtins/features/etc that apparently only xonotic uses. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5143 fc73d0e0-1445-4013-8a0c-d673dee63da5
23 lines
422 B
GLSL
23 lines
422 B
GLSL
!!permu FOG
|
|
!!samps reflectcube
|
|
#include "sys/defs.h"
|
|
#include "sys/fog.h"
|
|
|
|
//simple shader for simple skyboxes.
|
|
|
|
varying vec3 pos;
|
|
#ifdef VERTEX_SHADER
|
|
void main ()
|
|
{
|
|
pos = v_position.xyz - e_eyepos;
|
|
pos.y = -pos.y;
|
|
gl_Position = ftetransform();
|
|
}
|
|
#endif
|
|
#ifdef FRAGMENT_SHADER
|
|
void main ()
|
|
{
|
|
vec4 skybox = textureCube(s_reflectcube, pos);
|
|
gl_FragColor = vec4(fog3(skybox.rgb), 1.0);
|
|
}
|
|
#endif
|