0
$\begingroup$

I'm working on a project where I need to place two different texture one on the blue side and another on the pink side based on the output of Normal Coordinate from the Texture Coordinate node (See image below for better understanding) but I'm not able to figure out how to do that. Is there any way to separate the normals to use in a Image texture so it will only apply to normal value not the other one.

Screenshot that shows what it was meant by the first line of the question

$\endgroup$

1 Answer 1

2
$\begingroup$

Texture coordinate/normal is just the object space normal. You can use the dot product with an arbitrary, unit-length vector to sort the samples into two parts: those that are facing the arbitrary vector will have a dot product >0; those that don't, won't. You can use a math/greater than node to mix between two image textures like so:

enter image description here

Faces pointing toward object +X (arbitrary vector 1,0,0, the +X vector) will use the second image, while other faces will use the first image.

$\endgroup$
1
  • $\begingroup$ Thanks a lot, I appreciate you for your time for helping me. $\endgroup$
    – Mahir
    Dec 26, 2021 at 23:11

You must log in to answer this question.

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