mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 12:22:42 +00:00
062cdf6b21
Q3TA: Fixed script parsing, so the menus are not so broken. Q3TA: added the UI_CIN_* and CG_CIN_* builtins for 2d cinematic playbacks. Q3TA: backspace should work for gamecode text entry now. Q3TA: map_restart now directly restarts without needing loading screens. Fixed multiple envmap generation bugs. Fixed envmaps getting flushed with r_keepimages 0. Console image previews can now display cubemaps (although their orientation is probably a little off). Made a 'remapshader' csqc builtin. Depending on the r_remapshader console command was stupid. Fixed packet command to create a udp socket, if needed. sv_public can now be set to a non-numeric name for custom names (instead of needing to poke sv_port too). Support extended data on the end of miptex entries in bsps. Requires a qbsp (like vanilla) that doesn't rewrite the miptex entries. Updated imgtool to generate/read our new extended miptex data. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5644 fc73d0e0-1445-4013-8a0c-d673dee63da5
34 lines
578 B
HLSL
34 lines
578 B
HLSL
!!samps reflectcube
|
|
|
|
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;
|
|
return texCUBE(s_reflectcube, tc);
|
|
}
|
|
#endif
|