Blender Git Loki

Git Commits -> Revision c476c36

Revision c476c36 by Clément Foucault (master)
March 11, 2020, 16:12 (GMT)
Workbench Simplification Refactor

This patch is (almost) a complete rewrite of workbench engine.
The features remain unchanged but the code quality is greatly improved.
Hair shading is brighter but also more correct.

This also introduce the concept of `DRWShaderLibrary` to make a simple
include system inside the GLSL files.

Differential Revision: https://developer.blender.org/D7060

Commit Details:

Full Hash: c476c36e400883d929a7149def8dcb6ad6157a86
Parent Commit: f01bc59
Lines Changed: +4382, -5283

20 Added Paths:

/source/blender/draw/engines/workbench/shaders/workbench_composite_frag.glsl (+44, -0) (View)
/source/blender/draw/engines/workbench/shaders/workbench_effect_cavity_frag.glsl (+31, -0) (View)
/source/blender/draw/engines/workbench/shaders/workbench_effect_outline_frag.glsl (+24, -0) (View)
/source/blender/draw/engines/workbench/shaders/workbench_effect_smaa_frag.glsl (+44, -0) (View)
/source/blender/draw/engines/workbench/shaders/workbench_effect_smaa_vert.glsl (+21, -0) (View)
/source/blender/draw/engines/workbench/shaders/workbench_image_lib.glsl (+83, -0) (View)
/source/blender/draw/engines/workbench/shaders/workbench_matcap_lib.glsl (+30, -0) (View)
/source/blender/draw/engines/workbench/shaders/workbench_material_lib.glsl (+21, -0) (View)
/source/blender/draw/engines/workbench/shaders/workbench_merge_infront_frag.glsl (+18, -0) (View)
/source/blender/draw/engines/workbench/shaders/workbench_prepass_hair_vert.glsl (+94, -0) (View)
/source/blender/draw/engines/workbench/shaders/workbench_shader_interface_lib.glsl (+21, -0) (View)
/source/blender/draw/engines/workbench/shaders/workbench_transparent_accum_frag.glsl (+89, -0) (View)
/source/blender/draw/engines/workbench/shaders/workbench_transparent_resolve_frag.glsl (+26, -0) (View)
/source/blender/draw/engines/workbench/workbench_effect_antialiasing.c (+421, -0) (View)
/source/blender/draw/engines/workbench/workbench_effect_cavity.c (+182, -0) (View)
/source/blender/draw/engines/workbench/workbench_effect_outline.c (+55, -0) (View)
/source/blender/draw/engines/workbench/workbench_opaque.c (+165, -0) (View)
/source/blender/draw/engines/workbench/workbench_shader.c (+533, -0) (View)
/source/blender/draw/engines/workbench/workbench_shadow.c (+367, -0) (View)
/source/blender/draw/engines/workbench/workbench_transparent.c (+180, -0) (View)

17 Deleted Paths:

/source/blender/draw/engines/workbench/shaders/workbench_cavity_frag.glsl (+0, -81)
/source/blender/draw/engines/workbench/shaders/workbench_deferred_background_frag.glsl (+0, -30)
/source/blender/draw/engines/workbench/shaders/workbench_deferred_composite_frag.glsl (+0, -103)
/source/blender/draw/engines/workbench/shaders/workbench_effect_fxaa_frag.glsl (+0, -14)
/source/blender/draw/engines/workbench/shaders/workbench_forward_composite_frag.glsl (+0, -36)
/source/blender/draw/engines/workbench/shaders/workbench_forward_depth_frag.glsl (+0, -20)
/source/blender/draw/engines/workbench/shaders/workbench_forward_transparent_accum_frag.glsl (+0, -118)
/source/blender/draw/engines/workbench/shaders/workbench_ghost_resolve_frag.glsl (+0, -13)
/source/blender/draw/engines/workbench/shaders/workbench_object_outline_lib.glsl (+0, -12)
/source/blender/draw/engines/workbench/solid_mode.c (+0, -119)
/source/blender/draw/engines/workbench/transparent_mode.c (+0, -97)
/source/blender/draw/engines/workbench/workbench_deferred.c (+0, -1415)
/source/blender/draw/engines/workbench/workbench_effect_aa.c (+0, -101)
/source/blender/draw/engines/workbench/workbench_effect_fxaa.c (+0, -59)
/source/blender/draw/engines/workbench/workbench_effect_taa.c (+0, -305)
/source/blender/draw/engines/workbench/workbench_forward.c (+0, -817)
/source/blender/draw/engines/workbench/workbench_studiolight.c (+0, -257)

32 Modified Paths:

/source/blender/blenlib/intern/BLI_memblock.c (+6, -2) (Diff)
/source/blender/draw/CMakeLists.txt (+25, -22) (Diff)
/source/blender/draw/engines/overlay/overlay_engine.c (+0, -3) (Diff)
/source/blender/draw/engines/overlay/overlay_wireframe.c (+1, -9) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_cavity_lib.glsl (+53, -44) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_common_lib.glsl (+22, -132) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_curvature_lib.glsl (+24, -23) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_data_lib.glsl (+32, -2) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_effect_taa_frag.glsl (+4, -7) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_prepass_frag.glsl (+17, -80) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_prepass_vert.glsl (+22, -92) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_shadow_debug_frag.glsl (+10, -6) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_volume_frag.glsl (+10, -27) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_volume_vert.glsl (+3, -0) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_world_light_lib.glsl (+55, -33) (Diff)
/source/blender/draw/engines/workbench/workbench_data.c (+221, -186) (Diff)
/source/blender/draw/engines/workbench/workbench_effect_dof.c (+96, -121) (Diff)
/source/blender/draw/engines/workbench/workbench_engine.c (+543, -4) (Diff)
/source/blender/draw/engines/workbench/workbench_engine.h (+0, -2) (Diff)
/source/blender/draw/engines/workbench/workbench_materials.c (+208, -321) (Diff)
/source/blender/draw/engines/workbench/workbench_private.h (+301, -369) (Diff)
/source/blender/draw/engines/workbench/workbench_render.c (+25, -70) (Diff)
/source/blender/draw/engines/workbench/workbench_volume.c (+34, -83) (Diff)
/source/blender/draw/intern/draw_common.h (+5, -0) (Diff)
/source/blender/draw/intern/draw_hair.c (+26, -3) (Diff)
/source/blender/draw/intern/draw_manager.c (+8, -30) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+15, -5) (Diff)
/source/blender/draw/intern/draw_manager_shader.c (+129, -0) (Diff)
/source/blender/draw/intern/draw_manager_texture.c (+7, -0) (Diff)
/source/blender/draw/intern/DRW_render.h (+25, -1) (Diff)
/source/blender/gpu/shaders/gpu_shader_common_obinfos_lib.glsl (+6, -5) (Diff)
/source/blender/makesdna/DNA_view3d_enums.h (+0, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021