Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit/AppGameKit Studio Showcase / Grass Shader, Terrain Shader

Author
Message
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 21st Dec 2023 06:35 Edited at: 21st Dec 2023 07:01
I know getting started it hard so i was able to pull together some basic shaders. There not as good as the paid ones but there free. I Haven't seen a good-looking grass shader on agk yet so i worked on making one.
Feel free to use improve and or redistribute at will. Drop me a link if you use it in a game so i can check it out, please. Grass doesn't support lighting atm
The grass sways in multiple directions. adjustable
Realistic color variation.
Fades in at range as chunks render and auto deletes as player moves.
Works with Vulcan only currently. If you are using planes, it has basic billboarding capability built in.
splat map
Splat map supports light ambient light fog haven't figured out the shading yet.

I recommend using objects rather than planes since you can get much better performance from them.
origin of grass objects should be set to individual objects and not the group or it will cause sliding.
the grass is automatically mapped to the terrain using a splat map and a heightmap for areas where grass i mapped and at the correct height.





Attachments

Login to view attachments
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Dec 2023 20:28
Very nice, great work
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 21st Dec 2023 23:08 Edited at: 21st Dec 2023 23:10
good stuff. will use someday

meanwhile, attaching project modified by janbo to make it opengl-friendly for us Classic folks incase smerf doesn't update anytime soon.

Attachments

Login to view attachments
Scribble
7
Years of Service
User Offline
Joined: 2nd Apr 2017
Location:
Posted: 26th Dec 2023 14:26 Edited at: 26th Dec 2023 14:47
I'm going to steal this

Login to post a reply

Server time is: 2024-04-28 10:06:49
Your offset time is: 2024-04-28 10:06:49