wherein I learn a bunch of different things.
BACK
April 26, 2024
A grass shader
Here's a URP PBR grass shader, built off of Roystan's excellent article on the subject.
Rather than using a tessellation shader on an existing mesh, I created a brush tool in the editor to paint point clouds. This gives me control over the exact placement of grass blades, with colour set per vertex and normals controlling the orientation of each blade.
And some interactivity to top it all off.
Until next time.