mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Corrected SkyBox vertex format
This commit is contained in:
parent
8253bcc343
commit
27720cb786
2 changed files with 6 additions and 6 deletions
|
|
@ -252,7 +252,7 @@ void SkyBox::_renderObject( ObjectRenderInst *ri, SceneRenderState *state, BaseM
|
|||
|
||||
void SkyBox::_initRender()
|
||||
{
|
||||
GFXVertexPNTT *tmpVerts = NULL;
|
||||
GFXVertexPNT *tmpVerts = NULL;
|
||||
|
||||
U32 vertCount = 36;
|
||||
|
||||
|
|
@ -264,7 +264,7 @@ void SkyBox::_initRender()
|
|||
// Create temp vertex pointer
|
||||
// so we can read from it
|
||||
// for generating the normals below.
|
||||
tmpVerts = new GFXVertexPNTT[vertCount];
|
||||
tmpVerts = new GFXVertexPNT[vertCount];
|
||||
|
||||
// We don't bother sharing
|
||||
// vertices here, in order to
|
||||
|
|
@ -400,14 +400,14 @@ void SkyBox::_initRender()
|
|||
mIsVBDirty = false;
|
||||
}
|
||||
|
||||
GFXVertexPNTT *vertPtr = mVB.lock();
|
||||
GFXVertexPNT *vertPtr = mVB.lock();
|
||||
if (!vertPtr)
|
||||
{
|
||||
delete[] tmpVerts;
|
||||
return;
|
||||
}
|
||||
|
||||
dMemcpy( vertPtr, tmpVerts, sizeof ( GFXVertexPNTT ) * vertCount );
|
||||
dMemcpy(vertPtr, tmpVerts, sizeof( GFXVertexPNT) * vertCount);
|
||||
|
||||
mVB.unlock();
|
||||
|
||||
|
|
@ -609,7 +609,7 @@ void SkyBox::_initMaterial()
|
|||
features.removeFeature( MFT_Visibility );
|
||||
|
||||
// Now initialize the material.
|
||||
mMatInstance->init( features, getGFXVertexFormat<GFXVertexPNTT>() );
|
||||
mMatInstance->init(features, getGFXVertexFormat<GFXVertexPNT>());
|
||||
}
|
||||
|
||||
void SkyBox::_updateMaterial()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue