16bit vertex displacement
Does anyone know how to get a 16bit texture to displace vertices in the vertex shader?
Is it something I can set in the shader from GDScript?
I thought I could maybe store one byte in the red channel and the other in the green and bitshift it back inside the vertex shader, but texelFetch returns a vec4 of floats between 0.0 and 1.0 which makes it a little hard...
Here I'm using the red channel of a PNG (all channels are the exact same result) and you can see the steps in the height.