Why texture center is not equal to texture coordinates?

I reduced the texture coordinates and the texture seems bigger.
However now the center of the texture coordinates is different to the texture center.
I can’t use the Pythagorean theorem to calculate the new center.
Because the center of rotation of the texture has not changed.
It is still x=0.5 y=0.5

How can I move the texture?
Or how do I match the centers?

Thank you so much!!

1 Like

You need this node :slight_smile:

image

2 Likes

Thank you so much @ClockworkOcean !! :heart:

1 Like

@ClockworkOcean

Can i ask you one more thing please?

I have this code.

I afraid because if the cosine is equal to zero then it can cause an unhandled exception.
The material handle division by zero internally?
I don’t know how to check that with materials because the if statement does not exist.

Thank you!!

It is possible to get a ‘divide by zero’ error from material code.

There is an IF statement

image

It’s a bit clumsy. You could also try a mapping

image

1 Like

Thank you so much for your help @ClockworkOcean !! :heart:

1 Like

or maybe also

image

Or, code it in a different way.

1 Like

Clamp look great.
I think to handle the cosine problem is perfect.
Thank so you much @ClockworkOcean !! :heart:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.