Blender Git Commit Log

Git Commits -> Revision a830280

Revision a830280 by Sergey Sharybin (master)
May 23, 2016, 08:23 (GMT)
Support Vertex Color in GLSL viewport for Cycles

The title says it all actually.

Added special custom data type, because we don't know in advance
whether we're referencing UV or Color layer. Also made it so vertex
attributes are normalized.

TODO: Border render in viewport ignores the normalization of the
attribute array for some reason, will be looked into still.

Reviewers: mont29, brecht, campbellbarton

Reviewed By: brecht, campbellbarton

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

Commit Details:

Full Hash: a830280688b43e9c73e5a16dbe9d180720eb624f
Parent Commit: a2669b0
Lines Changed: +65, -25

5 Modified Paths:

/source/blender/blenkernel/intern/DerivedMesh.c (+52, -18) (Diff)
/source/blender/gpu/intern/gpu_buffers.c (+1, -1) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+4, -4) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+6, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_attribute.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021