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
commit 64c4a53a2c
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

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;