Tweak fog ambient

This commit is contained in:
Lauri Räsänen 2023-11-11 17:10:45 +02:00
parent 2d0ce913f9
commit 09e0feb4ff
2 changed files with 2 additions and 2 deletions

View file

@ -12,4 +12,4 @@ const FOG_LIGHT_STEP_SIZE = 10.0;
const FOG_DENSITY = 2.0;
const FOG_LIGHT_DENSITY = 3.0;
const FOG_ALPHA = 1.0;
const FOG_BLEND_STEPS = 4;
const FOG_AMBIENT = 0.06;

View file

@ -141,7 +141,7 @@ fn fs_main(vert: FogVertexOutput) -> @location(0) vec4<f32> {
let occlusion = march_result.z;
let base_color = vec3<f32>(mix(0.5, 0.1, fog_density));
let ambient_strength = 0.05;
let ambient_strength = FOG_AMBIENT;
let ambient_color = base_color * ambient_strength;
var radiance = vec3<f32>(0.0);