mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Improve terrain rendering, handle bug with no detail
This commit is contained in:
parent
27641b16ca
commit
481e2a7230
5 changed files with 74 additions and 24 deletions
|
|
@ -49,6 +49,7 @@ void GFXTextureArray::set(U32 width, U32 height, U32 size, GFXFormat format, U32
|
|||
|
||||
bool GFXTextureArray::fromTextureArray(const Vector<GFXTexHandle>& textureArray, U32 capacity)
|
||||
{
|
||||
PROFILE_SCOPE(GFXTextureArray_fromTextureArray)
|
||||
bool success = true;
|
||||
|
||||
// Not initialized, infer it from the given array of textures
|
||||
|
|
@ -114,6 +115,7 @@ bool GFXTextureArray::fromTextureArray(const Vector<GFXTexHandle>& textureArray,
|
|||
|
||||
void GFXTextureArray::setTexture(const GFXTexHandle& texture, U32 slot)
|
||||
{
|
||||
PROFILE_SCOPE(GFXTextureArray_setTexture)
|
||||
GFXTexHandle handle = texture;
|
||||
if (texture->getPath().isNotEmpty())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue