dsjs-web / GrassGPUInstansing

An exploration of various grass rendering techniques

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grass

by Garrett Gunnell

An exploration of grass rendering techniques.

DISCLAIMER: While this grass is highly performant and optimized, please don't attempt to use it yourself as it is tuned to my needs. Instead, reference it as much as you'd like. I apologize for the mess.

Features

  • GPU Instancing
  • GPU Frustum Culling
  • Chunked grass position buffers to cover any desired area
  • Level of detail applied to distant chunks
  • Scrolling noise texture to simulate wind
  • Shaders for quad grass and individual grass blade 3d models
  • Geometry Shader Grass

Quad Grass

Implementation details here.

example

3D Model Grass

Implementation details here.

example2

GPU Frustum Culling

example3

Chunking

example4

Level Of Detail

example5

Geometry Shader Grass

(don't reference the code for this or use it)

example6

About

An exploration of various grass rendering techniques

License:MIT License


Languages

Language:C# 45.9%Language:ShaderLab 31.6%Language:GLSL 21.3%Language:HLSL 1.2%