• Stars
    star
    256
  • Rank 158,491 (Top 4 %)
  • Language
    C#
  • License
    MIT License
  • Created almost 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An exploration of various grass rendering techniques

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

More Repositories

1

AcerolaFX

A suite of GShade shaders for Final Fantasy XIV
HLSL
896
star
2

Post-Processing

My Unity post processing pipeline and shaders
ShaderLab
573
star
3

Water

Sum of sines and fft fluid simulation with a physically based water shader
C#
360
star
4

Pixel-Sorting

A "real time" pixel sorter for Unity
C#
190
star
5

Shell-Texturing

Volumetric rendering of fur
C#
175
star
6

CS2-Smoke-Grenades

My recreation of CS2's responsive smoke grenades in Unity
C#
165
star
7

Inktober-Ink-Shader

An ink drawing post processing shader
ShaderLab
70
star
8

Disney-PBR

An implementation of Disney's principled BRDF
C#
52
star
9

CRT-Shader

A recreation of Loop Hero's CRT shader
C#
45
star
10

Minecraft-Shaders

Shaders for Minecraft
GLSL
40
star
11

obs-scripts

OBS scripts I have made to help my stream and others
Python
31
star
12

Cellular-Automata

Unity project demonstrating concepts introduced in my video on Cellular Automata
C#
28
star
13

The-Dating-Game

My submission for Ludwig's 2021 10 day game jam
C#
26
star
14

Elden-Ring-Stars

A recreation of Elden Ring's star particles
C#
20
star
15

Gooch-Shading

An implementation of Gooch Shading
ShaderLab
17
star
16

Image-Effects

Post processing in Unity
C#
7
star
17

World-Generator

Terrain generator for environment inspiration
GLSL
6
star
18

Chaikin-Curves

Code for my animation used for my video on Chaikin Curves
JavaScript
5
star
19

GarrettGunnell

4
star
20

Compute-Particles

GPU driven particle system demonstration
C#
3
star
21

Graphics-Reference-Sheet

Graphics programming related notes
3
star
22

Ray-Marcher

That thing literally everyone makes
C#
3
star
23

Watchy-Firmware

My firmware for the Watchy, an open source E-ink watch
C
3
star
24

Linear-Congruential-Generator

Basic python LCG
Python
3
star
25

DirectX11-Base-Framework

A basic DX11 framework that renders a textured quad
C++
2
star
26

Fluid-Simulation

Shallow water equations modeled in Unity
C#
2
star
27

Pixel-Sorter

Python
1
star
28

Data-Structures-Handbook

A collection of data structures I've learned.
1
star
29

Compute-Ray-Tracer

GPU Ray Tracing
C#
1
star
30

Marching-Cubes

Marching Cubes is an algorithm for triangulating procedural meshes
C#
1
star
31

cs160-zombulator

Zombie outbreak simulator for cs160.
JavaScript
1
star
32

Portfolio

My portfolio website
Svelte
1
star
33

Random-Shaders

Miscellaneous shaders
ShaderLab
1
star
34

Ray-Tracer

My implementation of a ray tracer following Jamis Buck's 'The Ray Tracer Challenge'
C++
1
star