additions

This commit is contained in:
2024-07-26 00:54:30 +03:00
parent f9ecf51295
commit c2d5cd9ee4
8 changed files with 1734 additions and 226 deletions

View File

@ -891,7 +891,7 @@ vec3 getCameraFov(vec2 uv, vec3 camPos, vec3 camTarget) {
return normalize(uv.x * camRight + uv.y * camUp + fov * camForward + voff * fov/focusdistance);
}
vec3 applyFog(vec3 col, float t, vec3 rd, vec3 lightDir, float b ) {
vec3 applyFog(vec3 col, float t, vec3 rd, vec3 lightDir, float b ) {
float fogAmount = 1.0 - exp(-t*b);
float sunAmount = max( dot(rd, lightDir), 0.0 );
vec3 fogColor = mix( vec3(0.3686, 0.2431, 0.4392), // blue