Enanyy / UnityGrassGeometryShader

Source code for Grass Shader tutorial for Unity. Generates blades with a geometry shader, tessellates input mesh to control density.

Home Page:https://roystan.net/articles/grass-shader.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grass Geometry Shader for Unity

Unity 2018.3 project source for completed Grass Shader Tutorial from the site roystan.net.

alt text

Uses a geometry shader to generate blades of grass. Controls the density of the blades by tessellating the input mesh. Can cast and receive shadows.

Wood texture used on fence model is sourced from CCO Textures.

About

Source code for Grass Shader tutorial for Unity. Generates blades with a geometry shader, tessellates input mesh to control density.

https://roystan.net/articles/grass-shader.html

License:The Unlicense


Languages

Language:ShaderLab 83.7%Language:HLSL 16.3%