Fix sky energy in fog sun scatter + colour space discrepancy in compatibility
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user