Commit b8642656 authored by hybrid's avatar hybrid

Replaced terrain smoothing with simpler version from Frosty Topaz.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1167 dfc29bdd-3216-0410-991c-e03cc46cb475
parent b1c52e4d
This diff is collapsed.
...@@ -23,10 +23,6 @@ namespace io ...@@ -23,10 +23,6 @@ namespace io
namespace scene namespace scene
{ {
//! A scene node for displaying terrain using the geo mip map algorithm. //! A scene node for displaying terrain using the geo mip map algorithm.
/** The code for the TerrainSceneNode is based on the GeoMipMapSceneNode
* developed by Spintz. He made it available for Irrlicht and allowed it to be
* distributed under this licence. I only modified some parts. A lot of thanks go to him.
**/
class CTerrainSceneNode : public ITerrainSceneNode class CTerrainSceneNode : public ITerrainSceneNode
{ {
public: public:
...@@ -281,8 +277,11 @@ namespace scene ...@@ -281,8 +277,11 @@ namespace scene
//! get indices when generating index data for patches at varying levels of detail. //! get indices when generating index data for patches at varying levels of detail.
u32 getIndex(const s32 PatchX, const s32 PatchZ, const s32 PatchIndex, u32 vX, u32 vZ) const; u32 getIndex(const s32 PatchX, const s32 PatchZ, const s32 PatchIndex, u32 vX, u32 vZ) const;
//! smooth the terrain
void smoothTerrain(SMeshBufferLightMap* mb, s32 smoothFactor);
//! calculate smooth normals //! calculate smooth normals
void calculateNormals(SMeshBufferLightMap* pMeshBuffer ); void calculateNormals(SMeshBufferLightMap* mb);
//! create patches, stuff that needs to only be done once for patches goes here. //! create patches, stuff that needs to only be done once for patches goes here.
void createPatches(); void createPatches();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment