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;
@ -46,5 +46,6 @@ vec4 ProcessTexel()
float c1 = n * c * (1.5-pow(1.25*uv.y,4.));
c1=clamp(c1,0.,1.);
vec3 col = vec3(c1*c1*c1*c1,1.2*c1*c1*c1,1.7*c1*c1);
return vec4(col,1.0);
mat.Base = vec4(col,1.0);
mat.Normal = ApplyNormalMap(vTexCoord.st);
}