Collision with 2D shader via Shader material
Before I start, I don't have much experience in shader-ing so most of my terminology could be wrong.
I've created a 2D Shader using Unity's shader graph which blends 2 gradient noises together to create an alpha map, of which I apply to a base colour to create an "island"-like effect. I've also applied this to a material and set a sprite's sprite-renderer to use that material.
Now I'm wondering how I would go about implementing collisions into this system. Maybe there's a way to use a mesh renderer + collider and a plane? Don't even know how that would work in a 2D game as like shown below.
I have had the idea of using the sprite to "cut-out holes" into another sprite, but there's still the issue of collisions there.
The collisions honestly do not have to be too precise, just as long as I have a stepping stone on how to approach this. Also, if it helps for context, the game is a top-down pirate ship game.
Any help on where to start would be appreciated, cheers!
Your answer
Follow this Question
Related Questions
Add Color Overlay to 2D Unlit Images 1 Answer
diffuse shaders cause occasional vertical lines in 2d maps 0 Answers
I need help for a mobile joystick 0 Answers
Prevent "useless" character movements 0 Answers