mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
terrain file I/O and opengl rendering cleanup
This commit is contained in:
parent
f36826605f
commit
2e2e08f32d
2 changed files with 3 additions and 6 deletions
|
|
@ -569,9 +569,6 @@ void TerrainDetailMapFeatGLSL::processPix( Vector<ShaderComponent*> &component
|
||||||
// amount so that it fades out with the layer blending.
|
// amount so that it fades out with the layer blending.
|
||||||
if ( fd.features.hasFeature( MFT_TerrainParallaxMap, detailIndex ) )
|
if ( fd.features.hasFeature( MFT_TerrainParallaxMap, detailIndex ) )
|
||||||
{
|
{
|
||||||
// Get the rest of our inputs.
|
|
||||||
Var *normalMap = _getNormalMapTex();
|
|
||||||
|
|
||||||
// Call the library function to do the rest.
|
// Call the library function to do the rest.
|
||||||
if (fd.features.hasFeature(MFT_IsBC3nm, detailIndex))
|
if (fd.features.hasFeature(MFT_IsBC3nm, detailIndex))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -110,11 +110,11 @@ void TerrainFile::_buildGridMap()
|
||||||
mGridMap.compact();
|
mGridMap.compact();
|
||||||
|
|
||||||
// Assign memory from the pool to each grid level.
|
// Assign memory from the pool to each grid level.
|
||||||
TerrainSquare *sq = mGridMapPool.address();
|
TerrainSquare *grid = mGridMapPool.address();
|
||||||
for ( S32 i = mGridLevels; i >= 0; i-- )
|
for ( S32 i = mGridLevels; i >= 0; i-- )
|
||||||
{
|
{
|
||||||
mGridMap[i] = sq;
|
mGridMap[i] = grid;
|
||||||
sq += 1 << ( 2 * ( mGridLevels - i ) );
|
grid += 1 << ( 2 * ( mGridLevels - i ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
for( S32 i = mGridLevels; i >= 0; i-- )
|
for( S32 i = mGridLevels; i >= 0; i-- )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue