Hey everyone,
I am currently working on a material where I want to check the orientation of the object and give a specific texture to it.
So after spending a lot of time working on it I got it to work for object that are not rotated along the x and y axis.
To show you guys what I mean. I have this simple setup:

And if you look at it ingame it will look like this:

The problem is, the objects that are not rotated are perfect but the object that are rotated have the colors screwed up.
It doesn't make any sence to me, since 2 sides become green.
Is there anyone who know why this is happening and maybe knows how I can solve it? Or maybe a different material setup to get the same result?
I am currently working on a material where I want to check the orientation of the object and give a specific texture to it.
So after spending a lot of time working on it I got it to work for object that are not rotated along the x and y axis.
To show you guys what I mean. I have this simple setup:

And if you look at it ingame it will look like this:

The problem is, the objects that are not rotated are perfect but the object that are rotated have the colors screwed up.
It doesn't make any sence to me, since 2 sides become green.
Is there anyone who know why this is happening and maybe knows how I can solve it? Or maybe a different material setup to get the same result?
Comment