bbtarzan12 / Unity-Procedural-Voxel-Terrain

Procedural Voxel Terrain Project
https://bbtarzan12.github.io/Voxel-Part-1/
MIT License
71 stars 10 forks source link

Port to URP #2

Open AldeRoberge opened 1 year ago

AldeRoberge commented 1 year ago

Hello @bbtarzan12 ,

Sorry for the issue, feel free to close when appropriate.

I am trying to port this project to the Universal Render Pipeline (Shader Graph)

I'm especially having trouble getting the shader to work.

image

Do you have any idea where to start?

Thank you a lot for this awesome project,

Alde

AldeRoberge commented 1 year ago

I was able to acheive moderate success with the following graph :

image

image

And code :

image

This is probably not optimal, I'm using UVs to store the atlas index + ambiant occlusion (AO) data, but it works :

image