0 votes

I'm trying to tile a texture along one axis so that it "fills" the entire surface. I've only found examples that multiply the uvs with a set numerical value, but the way I'd like for it to work is that I figure out the proportions of the texture and scale the uv based on the mesh proportions accordingly. So if the texture is 1x1 in width and height, and the mesh plane is 1x10, then the uv should be set to repeat the texture once along the first axis, and 10 times along the other.

I guess my question is, how do I access this information from the texture and mesh respectively and make use of it to perform these calculations?

Any help is appreciated! Thanks!

Godot version 3.2.3
in Engine by (14 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.