Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | rakkarage |
shader_type canvas_item;
uniform sampler2D noise;
void fragment() {
vec2 uv = vec2(UV.x + TIME, UV.y);
COLOR.rgba = texture(TEXTURE, uv).rgba;
}
Here is some very simple shader code that causes the texture to scroll. But it does not work when I pass in my own texture unless I stop animation. Which makes me think it has something to do with texture repeating and sampler2D? Because repeating needs to be enabled to use time in shader? idk
Does anyone know how to make this work in 4? some kinda sampler2d repeat hint? or idk? Maybe a bug? But someone must have got this working by now?
Please and thanks.
ViewportTexture repeat flag has no effect #36820
ViewportTexture repeat flag has no effect · Issue #36820 · godotengine/godot · GitHub
maybe related?
rakkarage | 2022-02-17 03:51