GPU: Move Material index to nodetree evaluation
authorClément Foucault <foucault.clem@gmail.com>
Sat, 11 May 2019 12:37:27 +0000 (14:37 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Tue, 14 May 2019 08:57:03 +0000 (10:57 +0200)
commit2d28df783a029ee5b64da005b2fa400e4e8de976
tree52761ab5351a3db388482029625e3c0526044037
parent642c8010b210e1671f4faa0ca1c097c77f19042a
GPU: Move Material index to nodetree evaluation

This removes the need to pass the Material* all over the place in the draw
manager. Cleanup comming right after.
source/blender/draw/intern/draw_manager_shader.c
source/blender/gpu/GPU_material.h
source/blender/gpu/intern/gpu_material.c
source/blender/gpu/shaders/gpu_shader_material.glsl
source/blender/nodes/shader/nodes/node_shader_object_info.c