Terrain with foliage example
From JPCT
Contents
Terrain with foliage example
Details
This is a terrain with a lot of foliage, lens flare, and sun. You can actually "paint" the splatting into a texture instead of relying on the height and some dubious alpha values. Sources are included. Compatible with with jPCT 1.20 or higher.
Screen shot
Program keys
1+2 : Move the sun. (The lens flare doesn't take the mountains into account for performance reasons.) T: toggle trees (on by default) D: toggle detail mapping (off by default) CRSR+PGUP+PGDOWN: move ESC: Exit FPS will be printed to the console each second.
Download Link
http://www.jpct.net/download/misc/terrain.zip
Final words
It's pretty hacky, especially processing of the trees and generating the terrain texturing could be improved. It is recommended that you optimize the source if you intend to use it for a project.