swwmgz_m/shaders/glsl/Shinemask.fp
Marisa Kirisame 9d03a86725 Fix shinemap shader UV flip.
Add shinemap debug sphere actor (to see them in action).
Move pp shaders to separate folder, akin to GZDoom's own layout.
2020-11-01 14:13:08 +01:00

7 lines
234 B
GLSL

vec4 ProcessTexel()
{
vec4 base = getTexel(vTexCoord.st);
float mask = texture(masktex,vTexCoord.st).x;
vec3 rnorm = normalize(vEyeNormal.xyz)*vec3(1,-1,1);
return vec4(base.rgb+texture(envtex,rnorm.xy*.49+.5).rgb*mask,base.a);
}