Portal awareness adjustments to various vector operations.
Got rid of the deprecated Matrix4.GetAxes method. Next step is to get rid of more stuff by migrating to libeye. Mirrored Translocator model so it shows the actually detailed side. At some point in UT's development it got flipped around for some reason. Weapon code cleanup (most noticeable on states). Backported scope shader from Doomreal. Added optional "dummied out" Sniper zoom sounds from a dubious source.
This commit is contained in:
parent
cd72ee9688
commit
fb96c7523e
27 changed files with 445 additions and 777 deletions
14
shaders/glsl/UTRifleScope.fp
Normal file
14
shaders/glsl/UTRifleScope.fp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
void main()
|
||||
{
|
||||
vec2 uv = TexCoord.st;
|
||||
vec3 base = texture(InputTexture,uv).rgb;
|
||||
vec2 p = vec2(.5)-uv;
|
||||
vec2 sz = textureSize(InputTexture,0);
|
||||
if ( sz.x > sz.y ) p.x *= sz.x/sz.y;
|
||||
else p.y *= sz.y/sz.x;
|
||||
vec3 col = texture(InputTexture,uv+p*pow(length(p),8.)*40.).rgb;
|
||||
col = mix(col,max(col.r,max(col.g,col.b))*vec3(.2,.7,1.),vec3(.3));
|
||||
float fade = 1.-clamp(pow(length(p)*2.,16.),0.,1.);
|
||||
col *= fade;
|
||||
FragColor = vec4(mix(base*.1,col,vec3(fade)),1.);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue