Clean up constants in shaders

This commit is contained in:
Lauri Räsänen 2023-11-11 17:13:14 +02:00
parent 09e0feb4ff
commit 8b99a617f4
3 changed files with 7 additions and 6 deletions

View file

@ -140,7 +140,7 @@ fn fs_main(vert: FogVertexOutput) -> @location(0) vec4<f32> {
let fog_depth = march_result.y;
let occlusion = march_result.z;
let base_color = vec3<f32>(mix(0.5, 0.1, fog_density));
let base_color = vec3<f32>(mix(FOG_DENSITY_COLOR.x, FOG_DENSITY_COLOR.y, fog_density));
let ambient_strength = FOG_AMBIENT;
let ambient_color = base_color * ambient_strength;