Blender Git Commit Log

Git Commits -> Revision 9bc177d

Revision 9bc177d by Alexander Gavrilov (master)
November 3, 2020, 13:35 (GMT)
Materials: support true float4 attributes in the Attribute node.

Add a new Alpha socket to the Attribute node that outputs the
fourth component of the attribute. Currently the only such
attribute is vertex color, but there may be more in the future.
If the attribute has no alpha channel, the expected value is 1.

The Cycles code is already refactored and committed by Brecht.

Ref D2057

Commit Details:

Full Hash: 9bc177d8ded4ba498762813a0d5106005fef0e67
Parent Commit: da93da4
Lines Changed: +15, -6

4 Modified Paths:

/source/blender/gpu/intern/gpu_codegen.c (+1, -1) (Diff)
/source/blender/gpu/intern/gpu_node_graph.c (+4, -1) (Diff)
/source/blender/gpu/shaders/material/gpu_shader_material_attribute.glsl (+5, -4) (Diff)
/source/blender/nodes/shader/nodes/node_shader_attribute.c (+5, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021