Blender Git Loki
Git Commits -> Revision 24fd03d
Revision 24fd03d by Clément Foucault (master) December 3, 2018, 16:19 (GMT) |
Workbench: Reduce VRAM usage depending on mode We exploit the fact that we are using the metallic workflow for material and pass the metallic parameter instead of the specular color. Pack the front facing bit in the color buffer only for matcap display. Change buffer formats to use less bytes as possible. Also don't request buffers that we won't use. Saved 40MB on 2K screen on StudioLight + Shadows + Specular Lighting. Includes several cleanups. |
Commit Details:
Full Hash: 24fd03d0c2fc5f49bc3813afce7ac5d67fc762bd
Parent Commit: 17a4323
Lines Changed: +129, -120
13 Modified Paths:
/source/blender/draw/engines/workbench/shaders/workbench_cavity_frag.glsl (+1, -7) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_common_lib.glsl (+11, -29) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_curvature_lib.glsl (+4, -6) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_deferred_composite_frag.glsl (+17, -17) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_forward_transparent_accum_frag.glsl (+4, -4) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_prepass_frag.glsl (+21, -25) (Diff)
/source/blender/draw/engines/workbench/workbench_deferred.c (+28, -13) (Diff)
/source/blender/draw/engines/workbench/workbench_effect_taa.c (+2, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_forward.c (+2, -2) (Diff)
/source/blender/draw/engines/workbench/workbench_materials.c (+23, -8) (Diff)
/source/blender/draw/engines/workbench/workbench_private.h (+7, -3) (Diff)
/source/blender/draw/intern/draw_manager_texture.c (+2, -0) (Diff)
/source/blender/gpu/intern/gpu_texture.c (+7, -5) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_common_lib.glsl (+11, -29) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_curvature_lib.glsl (+4, -6) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_deferred_composite_frag.glsl (+17, -17) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_forward_transparent_accum_frag.glsl (+4, -4) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_prepass_frag.glsl (+21, -25) (Diff)
/source/blender/draw/engines/workbench/workbench_deferred.c (+28, -13) (Diff)
/source/blender/draw/engines/workbench/workbench_effect_taa.c (+2, -1) (Diff)
/source/blender/draw/engines/workbench/workbench_forward.c (+2, -2) (Diff)
/source/blender/draw/engines/workbench/workbench_materials.c (+23, -8) (Diff)
/source/blender/draw/engines/workbench/workbench_private.h (+7, -3) (Diff)
/source/blender/draw/intern/draw_manager_texture.c (+2, -0) (Diff)
/source/blender/gpu/intern/gpu_texture.c (+7, -5) (Diff)