You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fedora 37, Intel integrated grafics with mesa drivers using Vulkan
Issue description
When I try to make a texture pan using the Visual Shader built-in node called UV Panning it wont pan properly, this only happens when using a 2DSprite, I tried the same but in a 3d object and it worked properly
This is a difference in the default repeat mode for textures in 2D and in 3D. In 3D textures default to "repeat_enabled" which means that the texture will repeat if the UV goes outside the 0-1 range. In 2D, textures default to "repeat_disabled" meaning that the texture does not repeat if the UV goes outside the 0-1 range. I don't think this difference is well documented. It should likely be documented in both the shader reference, and the class reference for BaseMaterial3D, CanvasitemMaterial, and the relevant visual shader nodes (UVFunc, and Texture2D at the very least)
In your 2D project you need to enable repeat if you want the texture to repeat when the UV goes outside the 0-1 range.
Godot version
4.0 stable
System information
Fedora 37, Intel integrated grafics with mesa drivers using Vulkan
Issue description
When I try to make a texture pan using the Visual Shader built-in node called UV Panning it wont pan properly, this only happens when using a 2DSprite, I tried the same but in a 3d object and it worked properly
This is in 2D:
Screencast.from.2023-03-03.17-02-36.webm
But in 3D:
Screencast from 2023-03-03 17-04-51.webm
Steps to reproduce
Minimal reproduction project
UVPanning.zip
The text was updated successfully, but these errors were encountered: