Blender Git Loki
Git Commits -> Revision 6eaf51e
Revision 6eaf51e by Clément Foucault (master) January 17, 2020, 15:29 (GMT) |
DRW: Use USHORT for vertex color and upload them in linear color to the GPU This way we remove the need for the srgb boolean uniform and a lot of code complexity. However, mesh update is going to be a bit slower. I did not benchmark the performance impact. This also fix a typo in draw_cache_impl_particles.c and fix hair not using vertex color in workbench. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6610 |
Commit Details:
Full Hash: 6eaf51ef3e5b7d37170473449bcda60bad025e67
Parent Commit: 9410e5d
Lines Changed: +55, -231
13 Modified Paths:
/source/blender/draw/engines/eevee/eevee_materials.c (+1, -31) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_prepass_vert.glsl (+9, -12) (Diff)
/source/blender/draw/engines/workbench/workbench_deferred.c (+1, -2) (Diff)
/source/blender/draw/engines/workbench/workbench_forward.c (+1, -1) (Diff)
/source/blender/draw/intern/draw_cache.c (+7, -32) (Diff)
/source/blender/draw/intern/draw_cache.h (+2, -8) (Diff)
/source/blender/draw/intern/draw_cache_extract.h (+0, -6) (Diff)
/source/blender/draw/intern/draw_cache_extract_mesh.c (+13, -5) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+1, -4) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+1, -81) (Diff)
/source/blender/draw/intern/draw_cache_impl_particles.c (+1, -1) (Diff)
/source/blender/gpu/intern/gpu_buffers.c (+18, -8) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+0, -40) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_prepass_vert.glsl (+9, -12) (Diff)
/source/blender/draw/engines/workbench/workbench_deferred.c (+1, -2) (Diff)
/source/blender/draw/engines/workbench/workbench_forward.c (+1, -1) (Diff)
/source/blender/draw/intern/draw_cache.c (+7, -32) (Diff)
/source/blender/draw/intern/draw_cache.h (+2, -8) (Diff)
/source/blender/draw/intern/draw_cache_extract.h (+0, -6) (Diff)
/source/blender/draw/intern/draw_cache_extract_mesh.c (+13, -5) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+1, -4) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+1, -81) (Diff)
/source/blender/draw/intern/draw_cache_impl_particles.c (+1, -1) (Diff)
/source/blender/gpu/intern/gpu_buffers.c (+18, -8) (Diff)
/source/blender/gpu/intern/gpu_codegen.c (+0, -40) (Diff)