1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

Fix broken coloring of wielditems (#9969)

Fixes a regression that appeared in 5.3.0-dev.
This commit is contained in:
Danila Shutov
2020-06-09 22:38:09 +03:00
committed by GitHub
parent 7148834440
commit fe3e69eb40
3 changed files with 16 additions and 5 deletions

View File

@@ -145,8 +145,10 @@ void main(void)
vec4 col = vec4(color.rgb, base.a);
col.rgb *= gl_Color.rgb;
col.rgb *= emissiveColor.rgb * vIDiff;
#ifdef ENABLE_TONE_MAPPING
col = applyToneMapping(col);
#endif