4f73088dea
minor tweak to prediction logic. bob logic will no longer stutter in eg freecs. reworked config ordering. autoexec-after-fte.cfg will now be enforced. reworked rawinput logic to avoid mouse button states getting stale due to separate mouse drivers when enabling the cursor. fixed invalid commands getting silently ignored when not connected to a server. allow execution of menu.dat from packages specified by the fmf. FS_NativePath now responds properly to FS_GAME, and will return logical paths, instead of mimicing FS_GAMEONLY. d3d9: fix tcgen skybox qcc: fix crash with __out keyword. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5171 fc73d0e0-1445-4013-8a0c-d673dee63da5
33 lines
No EOL
570 B
HLSL
33 lines
No EOL
570 B
HLSL
struct a2v
|
|
{
|
|
float4 pos: POSITION;
|
|
};
|
|
struct v2f
|
|
{
|
|
#ifndef FRAGMENT_SHADER
|
|
float4 pos: POSITION;
|
|
#endif
|
|
float3 texc: TEXCOORD0;
|
|
};
|
|
|
|
#ifdef VERTEX_SHADER
|
|
float4x4 m_modelviewprojection;
|
|
v2f main (a2v inp)
|
|
{
|
|
v2f outp;
|
|
outp.pos = mul(m_modelviewprojection, inp.pos);
|
|
outp.texc = inp.pos.xyz;
|
|
return outp;
|
|
}
|
|
#endif
|
|
|
|
#ifdef FRAGMENT_SHADER
|
|
float3 e_eyepos;
|
|
sampler s_reflectcube;
|
|
float4 main (v2f inp) : COLOR0
|
|
{
|
|
float3 tc = inp.texc - e_eyepos.xyz;
|
|
tc.y = -tc.y;
|
|
return texCUBE(s_reflectcube, tc);
|
|
}
|
|
#endif |