Merge pull request #46676 from lawnjelly/ewok_modulate_shader

Batching - fix custom MODULATE shader applying modulate twice
This commit is contained in:
Rémi Verschelde 2021-03-05 10:44:49 +01:00 committed by GitHub
commit d70258707d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -480,10 +480,10 @@ FRAGMENT_SHADER_CODE
#endif
}
#if !defined(MODULATE_USED)
#ifdef USE_ATTRIB_MODULATE
color *= modulate_interp;
#else
#if !defined(MODULATE_USED)
color *= final_modulate;
#endif
#endif