mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fixes artifacts in Cloud Layer.
Cloud Layer uses normal. This applies appropriate profile for normal texture.
This commit is contained in:
parent
e0627973fb
commit
028c9a40ac
|
|
@ -398,10 +398,10 @@ void CloudLayer::_initTexture()
|
|||
}
|
||||
|
||||
if ( mTextureName.isNotEmpty() )
|
||||
mTexture.set( mTextureName, &GFXStaticTextureSRGBProfile, "CloudLayer" );
|
||||
mTexture.set( mTextureName, &GFXNormalMapProfile, "CloudLayer" );
|
||||
|
||||
if ( mTexture.isNull() )
|
||||
mTexture.set( GFXTextureManager::getWarningTexturePath(), &GFXStaticTextureSRGBProfile, "CloudLayer" );
|
||||
mTexture.set( GFXTextureManager::getWarningTexturePath(), &GFXNormalMapProfile, "CloudLayer" );
|
||||
}
|
||||
|
||||
void CloudLayer::_initBuffers()
|
||||
|
|
@ -501,4 +501,4 @@ void CloudLayer::_initBuffers()
|
|||
}
|
||||
|
||||
mPB.unlock();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue