Page MenuHome

Shading: Add Vertex Color node.
ClosedPublic

Authored by Omar Emara (OmarSquircleArt) on Sep 11 2019, 9:46 PM.

Details

Summary

This patch adds a new Vertex Color node. The node also returns the alpha
of the vertex color layer as an output.

Diff Detail

Repository
rB Blender
Branch
vertex-color-node (branched from master)
Build Status
Buildable 4928
Build 4928: arc lint + arc unit

Event Timeline

  • Merge master and make sure Cycles match with EEVEE.

A file to test the Vertex Color node. Two of the vertices have an alpha of zero and the other two have an alpha of one. So the output alpha should be a gradient.

This revision is now accepted and ready to land.Sep 12 2019, 4:11 PM
This revision was automatically updated to reflect the committed changes.

I noticed that if you make use of the option to directly add vertex color channels as nodes — Shift + A ➔ Input ➔ Vertex Colors (don't know if that's a Node Wrangler option) — an Attribute node is still added.

It'd be nice if that would become the new Vertex Color node.

Thanks.

@Metin Seven (MetinSeven) Yes, this is provided by the Node Wrangler add-on. I will create a patch as soon as I have the time.

That feature should just be removed from Node Wrangler now that there is a built-in node.

Just to make sure: I mean the convenient Vertex Color submenu of the Input menu, where you can instantly choose one of the present vertex color channels. It'd be great if that could add a Vertex Color node with the chosen vertex color channel. Now an Attribute node is still used for that.