|Topic was automatically imported from the old Question2Answer platform.
How do I specify a texture to use within a shader? I have a flat mesh with a SpatialMaterial. Within that material, I have a texture I want to move. The effect I’m after is to have the texture appear to slide off of the surface of the mesh. From everything I’ve read, this is only possible within shaders (which I’ve just started learning).
However, Godot allows either a SpatialMaterial or a ShaderMaterial, but not both. As such, my SpatialMaterial texture goes away when I replace it with a ShaderMaterial. That means I have to somehow load the texture from within my shader, but I have no idea how to accomplish this.
Can anyone point me in the right direction?