mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
leftovers from when we added explicit 16 bit greyscale texture support
This commit is contained in:
parent
600859bd63
commit
ccb500f0ca
1 changed files with 1 additions and 1 deletions
|
|
@ -699,7 +699,7 @@ void TerrainFile::import( const GBitmap &heightMap,
|
|||
|
||||
// Convert the height map to heights.
|
||||
U16 *oBits = mHeightMap.address();
|
||||
if ( heightMap.getFormat() == GFXFormatR5G6B5 )
|
||||
if ( heightMap.getFormat() == GFXFormatL16)
|
||||
{
|
||||
const F32 toFixedPoint = ( 1.0f / (F32)U16_MAX ) * floatToFixed( heightScale );
|
||||
const U16 *iBits = (const U16*)heightMap.getBits();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue