How to use 3D Textures ? (Sampler3D)
I'm trying to sample a 3D texture in godot shading language but cannot make it work.
I've generated a 3D noise texture using this tool: https://github.com/SIsilicon/Godot-Volumetrics-Plugin/tree/v1.0 (scroll to see the Texture3D tool)
I've added the .png extention and imported it as a 3D texture in the import section.
In my shader I'm simply using
return texture(noise3D, vec3(UV.xy, 0)).r;
And when changing the z value of the UV I'm not moving through the slices correctly...
Any thought on that as there is no documentation ?