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.
$\begingroup$
$\endgroup$
4
-
2$\begingroup$ what nodes? shader nodes? geometry nodes? $\endgroup$– ChrisCommented 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 BotCommented Jun 29, 2022 at 12:06
-
$\begingroup$ Sorry for the inconvenience, but I mean the shader nodes $\endgroup$– qqq316Commented Jun 30, 2022 at 13:50
-
$\begingroup$ Texture coordinate - Normal put in Vector Transform (type normal, from object to camera space) $\endgroup$– CrantiszCommented Jun 30, 2022 at 14:45
Add a comment
|
1 Answer
$\begingroup$
$\endgroup$
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: