Can I get the position and the rotation from an external object into a node in the material editor?

Roberto Gomes
Roberto Gomes Posts: 2
edited October 2022 in Custom Material Creation #1

I'm tinkering with the Raymarch Texture Mapping material sample from the Code Node Template and I noticed that when I move the object around ( the object that has this material attached to), the SDF Sphere and the SDF Cube will also move accordingly, but when I rotate the object nothing happens.

So it got me wondering if it is possible to feed the position and rotation from an external object into the SDF objects?

https://drive.google.com/file/d/1Ij4H-PndNrR8a5nOy0errAMywvlWoENZ/view?usp=sharing

Answers