Page MenuHome

Geometry Nodes: Add Shader Curve Nodes
ClosedPublic

Authored by Charlie Jolly (charlie) on Apr 16 2021, 2:58 PM.

Details

Summary

Convert curve vec and curve rgb shader nodes to geometry nodes, based on node_shader_valToRgb.cc implementation.

Diff Detail

Repository
rB Blender
Branch
master
Build Status
Buildable 14725
Build 14725: arc lint + arc unit

Event Timeline

Jacques Lucke (JacquesLucke) requested changes to this revision.May 10 2021, 1:30 PM

Please move the file from C to C++ before in a separate patch.

This revision now requires changes to proceed.May 10 2021, 1:30 PM

Update and rebase after separating patch.

Jacques Lucke (JacquesLucke) added inline comments.
source/blender/nodes/shader/nodes/node_shader_curves.cc
149

Reorder this with the line below.

149

Looks like we should add a mutex in BKE_curvemapping_init or so. It feels like there is a race condition currently. That can be done afterwards (we have similar cases already in other places).

323

reorder lines here as well

This revision is now accepted and ready to land.May 25 2021, 1:52 PM
Charlie Jolly (charlie) marked 3 inline comments as done.May 25 2021, 2:59 PM

Please add the geometry nodes tag to the commit, so that it is added here: https://developer.blender.org/project/121/item/view/655/