Shaders to color terrain by height (if anyone is doing graphics)

Hello all,



I’m using jMonkey to display some 3D graphics.

I’m sharing my shaders and terrain definition. It’s mostly TerrainLigthing with a changed diffused light calculation.



There is a whole project for you to try it out on GitHub. I put there 3 different heightmaps so you can try out different things.



Here the link



And some pics so you see what i mean :wink:







3 Likes

Cool, thanks for sharing it!



As a fun exercise to try next you could also shade it based on slope, ie. no grass on steep slopes.

That would be cool but I have to focus on pure graphics for now.