That’s because, by default (and if possible), calculations are performed in the vertex instead of the fragment shader. If you force the calculation to happen in the fragment shader (by forcing the “uv” block to happen in the fragment), it will work:
1 Like