{"repo":"Mithzzx/Project-GrassFlow","free":true,"listed":false,"github":"https://github.com/Mithzzx/Project-GrassFlow","clone":"git clone https://github.com/Mithzzx/Project-GrassFlow.git","description":"A high-fidelity procedural grass rendering system in Unity, in the style of Ghost of Tsushima.","language":"C#","stars":44,"topics":["graphics-programming","gamedev"],"license":"MIT","category":"game-templates","readme_excerpt":"🌿 GrassFlow — GPU Grass for Unity URP Highly Optimized vegetation pipeline for Unity 6 URP capable of rendering 1,000,000+ instances at 0.1ms delta. Inspired by the technical direction of Ghost of Tsushima , this project leverages Indirect GPU Instancing , Compute Shaders , Hierarchical Occlusion Culling , and Bezier-based Procedural Deformation to achieve cinematic visuals with zero CPU overhead. https://github.com/user-attachments/assets/06014a60-49a3-4cea-8c40-7454d34aba38 https://github.com/user-attachments/assets/055c5fd2-947a-4bbb-a6f6-5b987e34fe91 --- GPU-Driven Compute Architecture Zero CPU overhead. Everything runs on the GPU. - Compute Shader Generation ( CSMain kernel): Generates grass blade data (position, height, rotation, wind phase) entirely on the GPU using grid-based distribution with noise-driven organic variation - StructuredBuffer Storage : All grass data lives in GPU memory (32 bytes per blade × 1M blades = 32MB) - DrawMeshInstancedIndirect : Single indirect draw call per LOD level—no CPU batching required - Procedural Mesh Construction : Runtime blade generation with configurable segment count (LOD0: 5 segs, LOD1: 3 segs, LOD2: 1 seg) Technical Implementation: --- Hierarchical Z-Buffer (HiZ) Occlusion Culling Implements GPU-driven occlusion culling using a depth pyramid—the same technique used in Assassin's Creed and Horizon Zero Dawn: Pipeline: 1. Depth Copy ( BlitDepth kernel): Copies camera's depth buffer to HiZ texture (Mip 0) 2. Mip Reduction ( Red","default_branch":null,"files":null,"tree":[],"storefront":"/r/Mithzzx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Mithzzx/Project-GrassFlow/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}