mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-26 23:05:38 +00:00
clarified the texture-atlas varnames a bit. (shadow vars cleanup)
This commit is contained in:
parent
ef0a4bee08
commit
57af794ee3
1 changed files with 9 additions and 9 deletions
|
|
@ -420,24 +420,24 @@ void TSLastDetail::_update()
|
||||||
|
|
||||||
imposterCap->end();
|
imposterCap->end();
|
||||||
|
|
||||||
Point2I texSize( destBmp.getWidth(mip), destBmp.getHeight(mip) );
|
Point2I atlasSize( destBmp.getWidth(mip), destBmp.getHeight(mip) );
|
||||||
|
|
||||||
// Ok... pack in bitmaps till we run out.
|
// Ok... pack in bitmaps till we run out.
|
||||||
for ( S32 y=0; y+currDim <= texSize.y; )
|
for ( S32 y=0; y+currDim <= atlasSize.y; )
|
||||||
{
|
{
|
||||||
for ( S32 x=0; x+currDim <= texSize.x; )
|
for ( S32 x=0; x+currDim <= atlasSize.x; )
|
||||||
{
|
{
|
||||||
// Copy the next bitmap to the dest texture.
|
// Copy the next bitmap to the dest texture.
|
||||||
GBitmap* bmp = bitmaps.first();
|
GBitmap* cell = bitmaps.first();
|
||||||
bitmaps.pop_front();
|
bitmaps.pop_front();
|
||||||
destBmp.copyRect( bmp, RectI( 0, 0, currDim, currDim ), Point2I( x, y ), 0, mip );
|
destBmp.copyRect(cell, RectI( 0, 0, currDim, currDim ), Point2I( x, y ), 0, mip );
|
||||||
delete bmp;
|
delete cell;
|
||||||
|
|
||||||
// Copy the next normal to the dest texture.
|
// Copy the next normal to the dest texture.
|
||||||
GBitmap* normalmap = normalmaps.first();
|
GBitmap* cellNormalmap = normalmaps.first();
|
||||||
normalmaps.pop_front();
|
normalmaps.pop_front();
|
||||||
destNormal.copyRect( normalmap, RectI( 0, 0, currDim, currDim ), Point2I( x, y ), 0, mip );
|
destNormal.copyRect(cellNormalmap, RectI( 0, 0, currDim, currDim ), Point2I( x, y ), 0, mip );
|
||||||
delete normalmap;
|
delete cellNormalmap;
|
||||||
|
|
||||||
// Did we finish?
|
// Did we finish?
|
||||||
if ( bitmaps.empty() )
|
if ( bitmaps.empty() )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue