Blender Git Loki
Git Commits -> Revision a2b05ac
Revision a2b05ac by Clément Foucault (master) May 2, 2018, 14:45 (GMT) |
Eevee: Fix vertex color being in srgb space. Now they are properly converted to Linear space before interpolation. Since the only way to get vertex color in eevee and cycles is via the attribute node with the CD_AUTO_FROM_NAME flag, we have to know at binding time which type of buffer will be connected to this auto input. We store this information inside the batch cache (together with the according uniform name) and pass it as uniform to the shader which does conversion if needed. The same shader can then be reused to draw another mesh with different auto layers configuration. |
Commit Details:
Full Hash: a2b05accea6e2879832ae4ac4465ca11d49622c5
Parent Commit: 648de1b
Lines Changed: +119, -13
6 Modified Paths:
/source/blender/draw/engines/eevee/eevee_materials.c (+24, -1) (Diff)
/source/blender/draw/intern/draw_cache.c (+14, -4) (Diff)
/source/blender/draw/intern/draw_cache.h (+4, -2) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+2, -1) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+49, -3) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+26, -2) (Diff)
/source/blender/draw/intern/draw_cache.c (+14, -4) (Diff)
/source/blender/draw/intern/draw_cache.h (+4, -2) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+2, -1) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+49, -3) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+26, -2) (Diff)