Maxwelldoggums's Banner

Maxwelldoggums

Reviews Favorites Flash News Main
Maxwelldoggums

Age/Gender: 18, Male
Location: Blacksburg VA

Newgrounds Stats

Sign-Up Date:
3/23/08

Level: 8
Aura: Neutral

Rank: Town Watch
Blams: 76
Saves: 99
Rank #: 46,238

Whistle Status: Normal

Exp. Points: 550 / 710
Exp. Rank #: 81,858
Voting Pow.: 4.98 votes

BBS Posts: 75 (0.05 per day)
Flash Reviews: 73
Music Reviews: 5
Trophies: 2

Latest News

Maxwelldoggums

Grass Shaders

Posted by Maxwelldoggums May. 25, 2009 @ 12:01 AM EDT

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.

Picture_4.jpg

All News Posts 7 comments | Log in to comment! | Share this!