1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Merge pull request #89849 from EIREXE/cute_and_funny_decals

Fix decal modulate being passed as srgb instead of as linear color.
This commit is contained in:
Rémi Verschelde
2024-04-04 14:31:53 +02:00

View File

@@ -2965,7 +2965,7 @@ void TextureStorage::update_decal_buffer(const PagedArray<RID> &p_decals, const
dd.emission_rect[3] = 0;
}
Color modulate = decal->modulate;
Color modulate = decal->modulate.srgb_to_linear();
dd.modulate[0] = modulate.r;
dd.modulate[1] = modulate.g;
dd.modulate[2] = modulate.b;