vähemmän glowia. final size: 4065

This commit is contained in:
2024-07-31 04:13:18 +03:00
parent 5db872e091
commit ba4b8a9f89
2 changed files with 21 additions and 21 deletions

View File

@ -251,9 +251,9 @@ float rayMarch(vec3 ro, vec3 rd, int a) {
// Raymarching
for (int i = 0; i < 100; i++) {
d = map(ro + rd * t, 0).x; // Get distance to objects
if (a==0) glow += 0.05/(1.0 + 10.*pow(map(ro + rd * t, 0).z, .5));
t += d; // "march" the ray
if (a==0) glow += 0.03/(1.0 + 2.*pow(map(ro + rd * t, 0).z, 6.3));
if (d < 1e-4 || t > 400.) break;
if (d < 1e-4 || t > 600.) break;
}
return t;
}
@ -412,11 +412,11 @@ vec3 sceneGate(vec2 uv)
if(mat==4.)
col *= vec3(0.0, 0.08, 0.11) + addSpecular(n,rd,0.3,0.7);
if(mat ==5.)
col = chevronColor * pow(cl(1. -dot(n, -rd), 0., 1.), .4);
col = chevronColor*0.4;// * pow(cl(1. -dot(n, -rd), 0., 1.), .3);
if(mat == 6.)
col *= vec3(0.01, 0.04, 0.06) + addSpecular(n,rd,.1, 2.5);
}
col += glow * chevronColor;
col += glow * chevronColor*3.0;
return postProcess(colorFlashesAnim(applyFog(col, d, rd, vec3(0., -.1, -1.), .01)));
}