Fix sky energy in fog sun scatter + colour space discrepancy in compatibility

This commit is contained in:
Kaleb Reid
2025-06-03 13:51:41 -07:00
parent e45cc68092
commit bac9427325
3 changed files with 7 additions and 7 deletions

View File

@ -164,7 +164,7 @@ vec4 fog_process(vec3 view, vec3 sky_color) {
float sun_total = 0.0;
for (uint i = 0; i < sky_scene_data.directional_light_count; i++) {
vec3 light_color = directional_lights.data[i].color_size.xyz * directional_lights.data[i].direction_energy.w;
float light_amount = pow(max(dot(view, directional_lights.data[i].direction_energy.xyz), 0.0), 8.0);
float light_amount = pow(max(dot(view, directional_lights.data[i].direction_energy.xyz), 0.0), 8.0) * M_PI;
fog_color += light_color * light_amount * sky_scene_data.fog_sun_scatter;
}
}