Page MenuHome

Shading: Add invert option to Vector Rotate Node
ClosedPublic

Authored by Charlie Jolly (charlie) on Feb 25 2020, 3:53 PM.

Diff Detail

Repository
rB Blender

Event Timeline

Patch works as intended for me.
Usecase:
-intuitive and easy way of inverting an euler rotation with the same rotation vector (rotating back and forth)
-replicating the 'Texture' rotation type from the mapping node
-much less cluttered rotation type dropdown menu by dropping

This revision is now accepted and ready to land.Feb 25 2020, 5:36 PM
Brecht Van Lommel (brecht) added inline comments.
intern/cycles/kernel/shaders/node_vector_rotate.osl
30–31

Use (invert) ? , any non-zero values should be interpreted as true.

This revision was automatically updated to reflect the committed changes.
Charlie Jolly (charlie) marked an inline comment as done.