Blender Git Commit Log
Git Commits -> Revision 687f09a
Revision 687f09a by Clément Foucault (master) May 20, 2018, 17:14 (GMT) |
Workbench: Optimize Shadows. This makes the shadows ~10 times faster in the general case. This only create extrusion geometry on the outline edges. Also we increment or decrement the stencil buffer by 2 for each manifold edge and only by 1 for non manifold. This make the algorithm robust yet less heavy than creating one prism for each triangles. |
Commit Details:
Full Hash: 687f09a8ad508b0f736b35337e589935296ecd0f
Parent Commit: 883cb58
Lines Changed: +218, -53
7 Modified Paths:
/source/blender/draw/engines/workbench/shaders/workbench_shadow_geom.glsl (+42, -40) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_shadow_vert.glsl (+11, -10) (Diff)
/source/blender/draw/engines/workbench/workbench_materials.c (+5, -2) (Diff)
/source/blender/draw/intern/draw_cache.c (+21, -0) (Diff)
/source/blender/draw/intern/draw_cache.h (+2, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+1, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+136, -1) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_shadow_vert.glsl (+11, -10) (Diff)
/source/blender/draw/engines/workbench/workbench_materials.c (+5, -2) (Diff)
/source/blender/draw/intern/draw_cache.c (+21, -0) (Diff)
/source/blender/draw/intern/draw_cache.h (+2, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+1, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+136, -1) (Diff)