final! 4095

This commit is contained in:
2024-07-31 22:10:03 +03:00
parent f9270a4722
commit 5e255bb1b2
2 changed files with 53 additions and 53 deletions

View File

@ -289,7 +289,7 @@ float specular(vec3 normal,vec3 lightPos,vec3 rayOrigin,float specular) {
vec3 getSeaColor(vec3 p, vec3 n, vec3 l, vec3 eye) {
vec3 color = SEA_BASE + diffuse(n,l,60.0) * SEA_WATER_COLOR * 0.3;
color -= vec3(0.73, 0.15, 0.66) * pow(clamp(1.-dot(n, -eye), 0., 1.), .7);
color -= vec3(0.73, 0.15, 0.66) * pow(cl(1.-dot(n, -eye), 0., 1.), .7);
color += vec3(specular(n,l,eye,60.0))*0.2;
return color;
}
@ -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(sin(timedSine(vec3(.8, 10.75, 8.)*2.)), -1.,.8);
float x = smoothstep(-1.,.8,sin((timedSine(vec3(.8, 10.75, 8.))*2.)));
col = mix(col, chevronColor * (x * 1.4), x *.76);
}
return col;