Search Unity

Question Voxel water wave effect without massively lowering performance

Discussion in 'General Graphics' started by JDK2209, Dec 16, 2020.

  1. JDK2209

    JDK2209

    Joined:
    May 7, 2017
    Posts:
    1
    Hi, I'm making a small voxel project and I wanted to make a (visually) moving voxel water because the whole game happens on a really small island and watching it flow would add an amazing touch. Because of the project scale, the voxels are pretty small (10 per Unity meter), so I don't think I can create that many objects for something that's supposed to be big and moving constantly. I tried using GPU instancing but either it affects performance too much anyway or I'm not using it properly. I was guessing a shader should do the trick but I'm not sure how to do it. I'm kind of a newbie to graphic scripting so I'd really love some help.

    Here's a visual reference to help y'all visualize the idea better:

     
  2. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,076
    I am curious to find out how to do this too.:)
     
  3. lilacsky824

    lilacsky824

    Joined:
    May 19, 2018
    Posts:
    171