how to generate 3d collision from a noise texture from a shader parameter using code in Godot 4

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By omnimistic

So here is the problem. I’m making a procedurally generated island survival game. I’m using a vertex shader to generate the islands as desired but now I’m having problems generating collision for it. I’m using a visual shader and the noise texture is generated inside godot. I found this tutorial on youtube but the creator uses a external texture that he has imported as an image and applied it to the shader parameter to create the terrain and the collision but since I’m generating the noise in the engine I don’t know what to do or even if there is a way to do that. Plz help me if you can and thank you for spending your precious time reading this.