1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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

@@ -700,10 +700,10 @@ void RasterizerSceneGLES3::_setup_sky(const RenderDataGLES3 *p_render_data, cons
sky_light_data.energy *= RSG::camera_attributes->camera_attributes_get_exposure_normalization_factor(p_render_data->camera_attributes);
}
Color linear_col = light_storage->light_get_color(base);
sky_light_data.color[0] = linear_col.r;
sky_light_data.color[1] = linear_col.g;
sky_light_data.color[2] = linear_col.b;
Color srgb_col = light_storage->light_get_color(base);
sky_light_data.color[0] = srgb_col.r;
sky_light_data.color[1] = srgb_col.g;
sky_light_data.color[2] = srgb_col.b;
sky_light_data.enabled = true;