Blender Git Commit Log

Git Commits -> Revision 9f6e09b

Revision 9f6e09b by Dalai Felinto (master)
January 11, 2019, 23:51 (GMT)
Drawing API: shgroup_instance and shgroup_instance_alpha clarification

shgroup_instance_alpha was getting a color[4] but would only use the
alpha defined upon creation of the shading group.

This was very limiting since it wouldn't allow for different instances
to have different alpha values.

Patch made with Cl�ment Foucault (he made the code of it, while I fixed
all the parts of the code that were relying on shgroup_instance_alpha.

Commit Details:

Full Hash: 9f6e09bd8c14ca7ae61f6f1a0b71801e06429d8b
Parent Commit: 0bd20aa
Lines Changed: +12, -16

4 Modified Paths:

/source/blender/draw/intern/draw_common.c (+3, -4) (Diff)
/source/blender/draw/intern/draw_common.h (+1, -1) (Diff)
/source/blender/draw/modes/object_mode.c (+6, -8) (Diff)
/source/blender/gpu/shaders/gpu_shader_instance_variying_size_variying_color_vert.glsl (+2, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021