Introduction - If you have any usage issues, please Google them yourself
The use of vertex shaders to achieve the topographic map rendering, is to learn from the good material shader programming
Packet : 31767686terrain_src.zip filelist
bin/
bin/bin/
bin/bin/fmod.dll
bin/bin/pgLib.dll
bin/bin/Terrain.exe
bin/config.cfg
bin/gamescene.bat
bin/gamescene_minimum.bat
bin/grandcanyon.bat
bin/maps/
bin/maps/gamescene/
bin/maps/gamescene/baseColor.dds
bin/maps/gamescene/baseLight.tga
bin/maps/gamescene/clouds.tga
bin/maps/gamescene/full.cfg
bin/maps/gamescene/heightmap.raw
bin/maps/gamescene/minimum.cfg
bin/maps/gamescene/pass1Color.jpg
bin/maps/gamescene/pass1Light.tga
bin/maps/gamescene/pass2Color.jpg
bin/maps/gamescene/pass2Light.tga
bin/maps/gamescene/skybox/
bin/maps/gamescene/skybox/skybox_bk.dds
bin/maps/gamescene/skybox/skybox_dn.dds
bin/maps/gamescene/skybox/skybox_ft.dds
bin/maps/gamescene/skybox/skybox_lf.dds
bin/maps/gamescene/skybox/skybox_rt.dds
bin/maps/gamescene/skybox/skybox_up.dds
bin/maps/grandcanyon/
bin/maps/grandcanyon/bench01
bin/maps/grandcanyon/heightmap.raw
bin/maps/grandcanyon/lightmap.tga
bin/maps/grandcanyon/terrain.cfg
bin/maps/grandcanyon/texture.dds
bin/maps/mountains/
bin/maps/mountains/baseColor.jpg
bin/maps/mountains/baseLight.jpg
bin/maps/mountains/heightmap.pvs
bin/maps/mountains/heightmap.raw
bin/maps/mountains/pass1Color.jpg
bin/maps/mountains/pass1Light.tga
bin/maps/mountains/pass2Color.jpg
bin/maps/mountains/pass2Light.tga
bin/maps/mountains/terrain.cfg
bin/mountains.bat
bin/shader/
bin/shader/TerrainMorph.vsh
bin/texture/
bin/texture/flare0.jpg
bin/texture/flare1.jpg
bin/texture/flare2.jpg
bin/texture/flare3.jpg
bin/texture/flare4.jpg
bin/texture/flare5.jpg
bin/texture/flare6.jpg
bin/texture/texture_not_found.tga
html/
html/back.jpg
html/gamescene.jpg
html/gamescene_minimum.jpg
html/grandcanyon.jpg
html/mountains.jpg
src/
src/Exec/
src/Exec/shader/
src/Exec/shader/TerrainMorph.vsh
src/Libs/
src/Libs/FMOD/
src/Libs/FMOD/FMOD.chm
src/Libs/FMOD/Include/
src/Libs/FMOD/Include/fmod.h
src/Libs/FMOD/Include/fmod_errors.h
src/Libs/FMOD/Include/wincompat.h
src/Libs/FMOD/Lib/
src/Libs/FMOD/Lib/fmodvc.lib
src/Libs/MSXML/
src/Libs/MSXML/include/
src/Libs/MSXML/include/msxml2.h
src/Libs/MSXML/include/msxml2.idl
src/Libs/MSXML/include/msxml2did.h
src/Libs/MSXML/lib/
src/Libs/MSXML/lib/msxml2.lib
src/Libs/MSXML/xmlsdk.chi
src/Libs/MSXML/xmlsdk.chm
src/PGE.dsw
src/pgLib/
src/pgLib/Audio/
src/pgLib/Audio/pgAudioFMOD.cpp
src/pgLib/Audio/pgAudioFMOD.h
src/pgLib/Audio/pgIAudio.cpp
src/pgLib/Audio/pgIAudio.h
src/pgLib/Audio/pgIAudioDevice.h
src/pgLib/Audio/pgISample.h
src/pgLib/Audio/pgSampleFMOD.cpp
src/pgLib/Audio/pgSampleFMOD.h
src/pgLib/Base/
src/pgLib/Base/pgIDirectX.cpp
src/pgLib/Base/pgIDirectX.h
src/pgLib/Base/pgIFileTool.cpp
src/pgLib/Base/pgIFileTool.h
src/pgLib/Base/pgIImageTool.cpp
src/pgLib/Base/pgIImageTool.h
src/pgLib/Base/pgImage.cpp
src/pgLib/Base/pgImage.h
src/pgLib/Base/pgInFile.h
src/pgLib/Base/pgInTextFile.cpp
src/pgLib/Base/pgInTextFile.h
src/pgLib/Base/pgIResourceManager.cpp
src/pgLib/Base/pgIResourceManager.h
src/pgLib/Base/pgISettings.cpp
src/pgLib/Base/pgISettings.h
src/pgLib/Base/pgIStringTool.cpp
src/pgLib/Base/pgIStringTool.h
src/pgLib/Base/pgITime.cpp
src/pgLib/Base/pgITime.h
src/pgLib/Base/pgIXML.cpp
src/pgLib/Base/pgIXML.h
src/pgLib/Base/pgList.h
src/pgLib/Base/pgLog.cpp
src/pgLib/Base/pgLog.h
src/pgLib/Base/pgOutFile.h
src/pgLib/Base/pgOutTextFile.cpp
src/pgLib/Base/pgOutTextFile.h
src/pgLib/Base/pgProfiler.cpp
src/pgLib/Base/pgProfiler.h
src/pgLib/Base/pgPtrList.h
src/pgLib/Base/pgSettingsFile.cpp
src/pgLib/Base/pgSettingsFile.h
src/pgLib/Base/pgString.cpp
src/pgLib/Base/pgString.h
src/pgLib/Docs/
src/pgLib/Docs/pgLib.chi
src/pgLib/Docs/pgLib.chm
src/pgLib/Docs/pgLib.pdf
src/pgLib/FrameWork/
src/pgLib/FrameWork/d3dapp.cpp
src/pgLib/FrameWork/d3dapp.h
src/pgLib/FrameWork/d3dfont.cpp
src/pgLib/FrameWork/d3dfont.h
src/pgLib/FrameWork/d3dres.h
src/pgLib/FrameWork/d3dutil.cpp
src/pgLib/FrameWork/d3dutil.h
src/pgLib/FrameWork/dxutil.cpp
src/pgLib/FrameWork/dxutil.h
src/pgLib/FrameWork/pgAppStub.cxx
src/pgLib/Game/
src/pgLib/Game/pgCharacter.cpp
src/pgLib/Game/pgCharacter.h
src/pgLib/Game/pgIGame.cpp
src/pgLib/Game/pgIGame.h
src/pgLib/Input/
src/pgLib/Input/pgIInput.cpp
src/pgLib/Input/pgIInput.h
src/pgLib/Input/pgInputDX.cpp
src/pgLib/Input/pgInputDX.h
src/pgLib/Input/pgSteering.cpp
src/pgLib/Input/pgSteering.h
src/pgLib/Math/
src/pgLib/Math/pgAABBox.h
src/pgLib/Math/pgIMathTool.cpp
src/pgLib/Math/pgIMathTool.h
src/pgLib/Math/pgMatrix.cpp
src/pgLib/Math/pgMatrix.h
src/pgLib/Math/pgPath.h
src/pgLib/Math/pgPathLinear.cpp
src/pgLib/Math/pgPathLinear.h
src/pgLib/Math/pgPlane.h
src/pgLib/Math/pgQuat.cpp
src/pgLib/Math/pgQuat.h
src/pgLib/Math/pgTransform.cpp
src/pgLib/Math/pgTransform.h
src/pgLib/Math/pgVec2.cpp
src/pgLib/Math/pgVec2.h
src/pgLib/Math/pgVec3.cpp
src/pgLib/Math/pgVec3.h
src/pgLib/Math/pgVec3n.cpp
src/pgLib/Math/pgVec3n.h
src/pgLib/Math/pgVec4.cpp
src/pgLib/Math/pgVec4.h
src/pgLib/pbLib.rc
src/pgLib/pgLib.cpp
src/pgLib/pgLib.doxygen
src/pgLib/pgLib.dsp
src/pgLib/pgLib.h
src/pgLib/Render/
src/pgLib/Render/BSP/
src/pgLib/Render/BSP/pgBSPClasses.h
src/pgLib/Render/BSP/pgBSPFile.cpp
src/pgLib/Render/BSP/pgBSPFile.h
src/pgLib/Render/BSP/pgBSPMesh.cpp
src/pgLib/Render/BSP/pgBSPMesh.h
src/pgLib/Render/BSP/pgBSPReader.cpp
src/pgLib/Render/BSP/pgBSPReader.h
src/pgLib/Render/BSP/pgBSPTools.cpp
src/pgLib/Render/BSP/pgBSPTools.h
src/pgLib/Render/md2Normals.h
src/pgLib/Render/pgAnimated.cpp
src/pgLib/Render/pgAnimated.h
src/pgLib/Render/pgBaseMesh.cpp
src/pgLib/Render/pgBaseMesh.h
src/pgLib/Render/pgD3DObject.cpp
src/pgLib/Render/pgD3DObject.h
src/pgLib/Render/pgLensflare.cpp
src/pgLib/Render/pgLensflare.h
src/pgLib/Render/pgLight.cpp
src/pgLib/Render/pgLight.h
src/pgLib/Render/pgLighting.cpp
src/pgLib/Render/pgLighting.h
src/pgLib/Render/pgMaterial.cpp
src/pgLib/Render/pgMaterial.h
src/pgLib/Render/pgMesh.cpp
src/pgLib/Render/pgMesh.h
src/pgLib/Render/pgMeshUtil.cpp
src/pgLib/Render/pgMeshUtil.h
src/pgLib/Render/pgMeshUtil_MD2.cxx
src/pgLib/Render/pgMeshUtil_OBJ.cxx
src/pgLib/Render/pgParticleSystem.cpp
src/pgLib/Render/pgParticleSystem.h
src/pgLib/Render/pgSegment.cpp
src/pgLib/Render/pgSegment.h
src/pgLib/Render/pgSkyBox.cpp
src/pgLib/Render/pgSkyBox.h
src/pgLib/Render/pgTexture.cpp
src/pgLib/Render/pgTexture.h
src/pgLib/Render/pgTextureStage.cpp
src/pgLib/Render/pgTextureStage.h
src/pgLib/Render/pgTransformable.cpp
src/pgLib/Render/pgTransformable.h
src/pgLib/Render/pgXUtil.cpp
src/pgLib/Render/pgXUtil.h
src/pgLib/Render/Terrain/
src/pgLib/Render/Terrain/pgTerrain.cpp
src/pgLib/Render/Terrain/pgTerrain.h
src/pgLib/Render/Terrain/pgTerrainPatch.cpp
src/pgLib/Render/Terrain/pgTerrainPatch.h
src/pgLib/Render/Terrain/pgTerrainPatchBase.cpp
src/pgLib/Render/Terrain/pgTerrainPatchBase.h
src/pgLib/Render/Terrain/pgTerrainPatchMorphHW.cpp
src/pgLib/Render/Terrain/pgTerrainPatchMorphHW.h
src/pgLib/Render/Terrain/pgTerrainPatchMorphSW.cpp
src/pgLib/Render/Terrain/pgTerrainPatchMorphSW.h
src/pgLib/Render/Terrain/pgTerrainPVS.cpp
src/pgLib/Render/Terrain/pgTerrainPVS.h
src/pgLib/Render/Tree/
src/pgLib/Render/Tree/pgBlendTree.cpp
src/pgLib/Render/Tree/pgBlendTree.h
src/pgLib/Render/Tree/pgBlendWood.cpp
src/pgLib/Render/Tree/pgBlendWood.h
src/pgLib/Render/Tree/pgComplexTree.cpp
src/pgLib/Render/Tree/pgComplexTree.h
src/pgLib/Render/Tree/pgSimpleTree.cpp
src/pgLib/Render/Tree/pgSimpleTree.h
src/pgLib/resource.h
src/Projects/
src/Projects/PVSShow/
src/Projects/PVSShow/PVSShow.aps
src/Projects/PVSShow/PVSShow.clw
src/Projects/PVSShow/PVSShow.cpp
src/Projects/PVSShow/PVSShow.dsp
src/Projects/PVSShow/PVSShow.h
src/Projects/PVSShow/PVSShow.rc
src/Projects/PVSShow/PVSShowDlg.cpp
src/Projects/PVSShow/PVSShowDlg.h
src/Projects/PVSShow/ReadMe.txt
src/Projects/PVSShow/res/
src/Projects/PVSShow/res/logoMiddle.ico
src/Projects/PVSShow/res/logoSmall.ico
src/Projects/PVSShow/res/PVSShow.ico
src/Projects/PVSShow/res/PVSShow.rc2
src/Projects/PVSShow/resource.h
src/Projects/PVSShow/StdAfx.cpp
src/Projects/PVSShow/StdAfx.h
src/Projects/TerrainTest/
src/Projects/TerrainTest/directx.ico
src/Projects/TerrainTest/resource.h
src/Projects/TerrainTest/TerrainTest.cpp
src/Projects/TerrainTest/TerrainTest.dsp
src/Projects/TerrainTest/TerrainTest.h
src/Projects/TerrainTest/TerrainTest.plg
src/Projects/TerrainTest/winmain.aps
src/Projects/TerrainTest/winmain.rc
src/readme.txt
readme.html