Skip to main content

History: Multiple Light Terrain

Preview of version: 3

Multiple Light Terrain


This is a Terrain Material Generator that supports multiple point lights.

.h File

[+] Collapsible - Closed

.cpp File

[+] Collapsible - Closed

Use


To enable it do this when you make your terrain:

Copy to clipboard
Ogre::TerrainMaterialGeneratorPtr matGen; Ogre::TerrainMaterialGeneratorB* matGenP = new Ogre::TerrainMaterialGeneratorB(); matGen.bind(matGenP); m_pTerrainGlobals->setDefaultMaterialGenerator(matGen);

History

Information Version
Thu 16 of Aug, 2012 15:35 GMT-0000 yati 5
Thu 16 of Aug, 2012 15:33 GMT-0000 yati Fixed headings 4
Thu 16 of Aug, 2012 15:31 GMT-0000 yati Added example 3
Thu 16 of Aug, 2012 15:28 GMT-0000 yati Added my code 2
Thu 16 of Aug, 2012 15:20 GMT-0000 yati 1