Blender Git Loki

Git Commits -> Revision a091da7

Revision a091da7 by Jeroen Bakker (master)
April 18, 2018, 11:44 (GMT)
Workbench: reuse similar materials

Similar materials will reuse the same shadergroup. Currently using
a custom hash function that might select too similar colors into the
same material.

Reintroduced the workbench_materials.c this file will be responsible for
material lookup/creation and shader compilation

Fixed a GPUShader mem leak

Commit Details:

Full Hash: a091da7ffad137c114139dd59db79b2d7fbd8006
Parent Commit: d9051c4
Lines Changed: +173, -72

2 Added Paths:

/source/blender/draw/engines/workbench/shaders/workbench_diffuse_lib.glsl (+3, -0) (View)
/source/blender/draw/engines/workbench/workbench_materials.c (+128, -0) (View)

6 Modified Paths:

/source/blender/draw/CMakeLists.txt (+2, -0) (Diff)
/source/blender/draw/engines/workbench/shaders/solid_studio_frag.glsl (+1, -1) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_studio_vert.glsl (+0, -1) (Diff)
/source/blender/draw/engines/workbench/solid_flat_mode.c (+12, -35) (Diff)
/source/blender/draw/engines/workbench/solid_studio_mode.c (+9, -32) (Diff)
/source/blender/draw/engines/workbench/workbench_private.h (+18, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021