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

This commit is contained in:
Marisa the Magician 2025-11-01 13:32:57 +01:00
commit 1583863894
16 changed files with 58 additions and 205 deletions

View file

@ -1,4 +1,4 @@
vec4 ProcessTexel()
void SetupMaterial( inout Material mat )
{
vec2 uv = vTexCoord.st;
vec2 ccoord = uv-vec2(.5,1.1);
@ -9,13 +9,13 @@ vec4 ProcessTexel()
vec3 bcol = texture(starstex,fract(coord)).rgb;
coord = uv*1.5;
coord = (coord-vec2(.8,.3))*2.;
vec4 mcol = texture(moontex,coord);
vec4 mcol = texture(moontex,clamp(coord,vec2(0.),vec2(1.)));
bcol = mix(bcol*.3,mcol.rgb*.7,mcol.a);
coord = proj*.5+vec2(-.5,-1.)*timer*.1;
coord = fract(coord);
vec3 col = getTexel(coord).rgb;
col *= mix(vec3(1.9,.4,.2),vec3(1.),pow(pt.z,.5));
col *= mix(vec3(1.3,.5,.3),vec3(1.),pow(pt.x+.8,.5));
col *= mix(vec3(1.1,1.4,1.3),vec3(.3),clamp(1.3*pow(distance(pt.xy,vec2(.2,-.25)),.9),0.,1.));
return vec4(bcol+col,1.);
}
mat.Base = vec4(bcol+col,1.);
mat.Normal = ApplyNormalMap(vTexCoord.st);
}