1.3.1 update. compatibility w/ newer versions of source ports.

This commit is contained in:
Marisa the Magician 2025-11-01 13:49:28 +01:00
commit 23c58058f3
23 changed files with 69 additions and 140 deletions

View file

@ -33,7 +33,7 @@ float fbm(vec2 uv)
return f;
}
vec4 ProcessTexel()
void SetupMaterial( inout Material mat )
{
vec2 uv = vTexCoord.st;
uv.y = 1.0-uv.y;
@ -48,5 +48,6 @@ vec4 ProcessTexel()
c1=clamp(c1,0.,1.);
vec3 col = vec3(c1*c1*c1, 1.5*c1, c1*c1*c1*c1*c1*c1);
float a = clamp(c * (1.-pow(uv.y,3.)),0.,1.);
return vec4( mix(vec3(0.),col,a), 1.0);
mat.Base = vec4( mix(vec3(0.),col,a), 1.0);
mat.Normal = ApplyNormalMap(vTexCoord.st);
}