0
$\begingroup$

I'm using shader nodes, and I'm attempting to get the orientation vector of the camera for toon shading. I've tried camera data node but the result wasn't what I wanted. Do I need to script something for it? Or are there other solutions? Thanks.

$\endgroup$
4
  • 2
    $\begingroup$ what nodes? shader nodes? geometry nodes? $\endgroup$
    – Chris
    Commented Jun 29, 2022 at 11:05
  • $\begingroup$ Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. $\endgroup$
    – Community Bot
    Commented Jun 29, 2022 at 12:06
  • $\begingroup$ Sorry for the inconvenience, but I mean the shader nodes $\endgroup$
    – qqq316
    Commented Jun 30, 2022 at 13:50
  • $\begingroup$ Texture coordinate - Normal put in Vector Transform (type normal, from object to camera space) $\endgroup$
    – Crantisz
    Commented Jun 30, 2022 at 14:45

1 Answer 1

4
$\begingroup$

If you want to return the World Space camera location and the direction it's pointing, in a shader-tree, these clusters should do it:

enter image description here

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .