This commit is contained in:
2024-07-31 21:44:25 +03:00
parent a22e759c47
commit f9270a4722
3 changed files with 53 additions and 56 deletions

View File

@ -368,7 +368,7 @@ vec3 cameraPointAt() {
// flash screen with glyph color when it is locked
vec3 colorFlashesAnim(vec3 col) {
if(u_time > 10.75) {
float x = smoothstep(-1.,.8,sin((timedSine(vec3(.8, 10.75, 8.))*2.)));
float x = smoothstep(sin(timedSine(vec3(.8, 10.75, 8.)*2.)), -1.,.8);
col = mix(col, chevronColor * (x * 1.4), x *.76);
}
return col;
@ -405,12 +405,9 @@ vec3 sceneGate(vec2 uv)
col += indirColor * cl( dot( n, no(vec3(0. , 1., 10.))), 0., 1.);
if(mat==0.)
col *= vec3(0.21, 0.35, 0.33) + addSpecular(n,rd,.5, 2.);
col *= vec3(0.2, 0.3, 0.3) + addSpecular(n,rd,.5, 2.);
if(mat==1.)
{
//float fresnel = pow(clamp(1.-dot(n, -rd), 0., 1.), .5);
col = getSeaColor(p, n, no(vec3(0.0,0.3,0.8)),no(rd)); //+ vec3(1., 1.0 ,1.); * fresnel;
}
col = getSeaColor(p, n, no(vec3(0.0,0.3,0.8)),no(rd));
if(mat==2.)
col *= vec3(.8, .8, .5);
if(mat==3.)