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

@ -25,7 +25,7 @@ vec2 hash22(vec2 p)
return fract((p3.xx+p3.yz)*p3.zy);
}
vec4 ProcessTexel()
void SetupMaterial( inout Material mat )
{
vec2 resolution = vec2(3.,6.);
vec2 uv = vTexCoord.st*resolution;
@ -54,5 +54,6 @@ vec4 ProcessTexel()
vec3 n = vec3(dFdx(circles), dFdy(circles), 0.);
n.z = sqrt(1. - dot(n.xy, n.xy));
vec3 color = getTexel(uv/resolution - intensity*n.xy).rgb + 5.*pow(clamp(dot(n, normalize(vec3(1., 0.7, 0.5))), 0., 1.), 6.);
return vec4(color, 1.0);
mat.Base = vec4(color, 1.0);
mat.Normal = ApplyNormalMap(vTexCoord.st);
}