Page MenuHome

Geometry Nodes: Add Wave texture node
ClosedPublic

Authored by Charlie Jolly (charlie) on Oct 2 2021, 8:37 PM.

Diff Detail

Repository
rB Blender

Event Timeline

Charlie Jolly (charlie) requested review of this revision.Oct 2 2021, 8:37 PM
Charlie Jolly (charlie) created this revision.
Jacques Lucke (JacquesLucke) requested changes to this revision.Oct 19 2021, 2:48 PM

I assume you compared this to shader nodes again?

source/blender/nodes/shader/nodes/node_shader_tex_wave.cc
133

This doesn't make sense because r_color is not using the *_if_required method above.
Also, you are writing to r_fac below, even though it may be empty.

145

Make use of switch statements.

176

Missing { }

This revision now requires changes to proceed.Oct 19 2021, 2:48 PM
Charlie Jolly (charlie) marked 3 inline comments as done.Oct 19 2021, 4:01 PM
Charlie Jolly (charlie) added inline comments.
source/blender/nodes/shader/nodes/node_shader_tex_wave.cc
133

I had these the wrong way around.

Charlie Jolly (charlie) marked an inline comment as done.

Address comments

Jacques Lucke (JacquesLucke) added inline comments.
source/blender/nodes/shader/nodes/node_shader_tex_wave.cc
204

Check for !r_color.is_empty() directly.

This revision is now accepted and ready to land.Oct 19 2021, 6:18 PM
Charlie Jolly (charlie) marked an inline comment as done.Oct 19 2021, 6:44 PM
This revision was automatically updated to reflect the committed changes.