ColinLeung-NiloCat / UnityURP-MobileDrawMeshInstancedIndirectExample

Example project to draw 1million grass instances on mobile
https://youtu.be/A7rav4tS88s
MIT License
1.56k stars 237 forks source link

light probe or Bakery volume lighting? #1

Open laurentopia opened 3 years ago

laurentopia commented 3 years ago

It seems that you use vertex lighting for your grass, that might explain why this is so fast. Can this be done in a shader graph? I'm asking because I'd like to add volume lighting and I haven't the faintest idea how to convert such complex graph to vertex shader. https://geom.io/bakery/wiki/index.php?title=Manual#Bakery_Volume image

ColinLeung-NiloCat commented 3 years ago

Can this be done in a shader graph? -> yes, the grass shader didn't use any advanced feature, but maybe you still need a custom node to access global array and light data).