Be a Supporter!


Main News Movies Games Favorites Reviews Stats 144 Fans
Follow Maxwelldoggums

Contact Info / Websites

Entry #25

Grass Shaders

2009-05-25 00:01:32 by Maxwelldoggums

So I started writing the shader for the grass on my terrain generator. So far it uses a shell system, but I'm hoping to incorporate fins to make it look better from up close. It's a 10 pass shader ( CRAZY INEFFICIENT) that renders the base texture blended surface, and 9 separate shells extruded outwards from the mesh. So far it looks good, but I'm still working on making it draw grass in different densities depending on the altitude of the terrain, so that cliffs won't have grass on them.

The good thing about using a shader for drawing blades of grass, is that it doesn't drastically increase the polygon count, and (if written correctly) will look good from any angle, whereas if you were using flat billboard meshes, the blades of grass might be in a perfect line and look flat from the sides.

Grass Shaders


You must be logged in to comment on this post.


2009-06-10 10:29:08

So...Its nice and everything you are using new things and stuff...but where is Orange Runner 2?Come on guy,i dont wanna be rude or anything,but thats what all of we are waiting for.


2009-07-19 22:42:09

Great job the grass is very realistic inly that is a little bit blurred.


2009-08-03 02:32:36

Terrain? To run on? Like... Orange Runner?


2009-08-26 17:20:29

lol everyone wants orange runner 2


2009-09-18 03:56:58

What is Gish?


2009-09-18 03:57:14

Very nice work too.


2010-09-15 22:02:29

fucking finish orange runner for fuck sake