Search Unity

Resolved Interaction between vfx and grass on mobile platform

Discussion in 'Shaders' started by Fedrov, Feb 22, 2021.

  1. Fedrov

    Fedrov

    Joined:
    Sep 4, 2020
    Posts:
    14
    Hello everyone, so recently i have been trying to create an interaction between grass and weapon special effect.I found a similar reference but it is done in UE(which i dont have any experience about..)
    Here is the link: https://www.unrealengine.com/marketplace/en-US/product/dynamic-grass-system

    because i want this effect to be able to run on mobile platform, I choose to use the unity terrian system and it's tree detail to paint the grass meshes (geometry shader on mobile is poorly supported and billborad method uses alphatest which is not very optimized on mobile platform)

    Here is my problem: is it possible to pass particles position to the shader and perform vertex offset? Or is there any better solution?
     
  2. Fedrov

    Fedrov

    Joined:
    Sep 4, 2020
    Posts:
    14
    UkEArwoHxQ.png

    Here is the reference img