16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-17 22:39:17 +02:00

opengl33renderer: Brighten up the clouds

With tonemapping, clouds need to stand out above 1.0 to reach proper
white levels.

Note that this should get disabled if tonemapping isn't used, in case
it's made properly configurable in the future.
This commit is contained in:
Sebastian Krzyszkowiak
2026-06-30 03:31:43 +02:00
parent f2a7cc4f98
commit fdc9ea7099

View File

@@ -2047,7 +2047,7 @@ bool opengl33_renderer::Render(world_environment *Environment)
// write cloud color into material
TSubModel *mdl = Environment->m_clouds.mdCloud->Root;
if (mdl->m_material != null_handle)
m_materials.material(mdl->m_material).params[0] = glm::vec4(color, 1.0f);
m_materials.material(mdl->m_material).params[0] = glm::vec4(color * 2.5f, 1.0f);
// render
Render(Environment->m_clouds.mdCloud, nullptr, 100.0);