Skip to content

Commit

Permalink
up ambiant a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriopass committed May 12, 2023
1 parent e5cd90b commit 936286b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/shaders/pbr/render.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ fn render(sun: vec3<f32>,
var dkD: vec3<f32> = 1.0 - dkS;
dkD *= 1.0 - vec3(metallic);

let ambient: vec3<f32> = (0.2 * dkD * (0.1 + irradiance_diffuse) * albedo + specular) * ssao;
let ambient: vec3<f32> = (0.2 * dkD * (0.15 + irradiance_diffuse) * albedo + specular) * ssao;
var color: vec3<f32> = ambient + Lo * 4.0;

color = tonemap(color);
Expand Down

0 comments on commit 936286b

Please sign in to comment.