mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
Direct3D11 Engine/source changes
This commit is contained in:
parent
3a9b50f702
commit
41e5caf22b
81 changed files with 1291 additions and 617 deletions
|
|
@ -57,7 +57,7 @@
|
|||
# include "platformXbox/platformXbox.h"
|
||||
#endif
|
||||
|
||||
GFXPrimitiveType drawTypes[] = { GFXTriangleList, GFXTriangleStrip, GFXTriangleFan };
|
||||
GFXPrimitiveType drawTypes[] = { GFXTriangleList, GFXTriangleStrip };
|
||||
#define getDrawType(a) (drawTypes[a])
|
||||
|
||||
|
||||
|
|
@ -2442,7 +2442,6 @@ void TSMesh::_createVBIB( TSVertexBufferHandle &vb, GFXPrimitiveBufferHandle &pb
|
|||
break;
|
||||
|
||||
case GFXTriangleStrip:
|
||||
case GFXTriangleFan:
|
||||
pInfo.type = drawType;
|
||||
pInfo.numPrimitives = draw.numElements - 2;
|
||||
pInfo.startIndex = draw.start;
|
||||
|
|
@ -3006,17 +3005,6 @@ void TSMesh::createTangents(const Vector<Point3F> &_verts, const Vector<Point3F>
|
|||
}
|
||||
break;
|
||||
}
|
||||
case GFXTriangleFan:
|
||||
{
|
||||
p1Index = baseIdx[0];
|
||||
p2Index = baseIdx[1];
|
||||
for( U32 j = 2; j < numElements; j++ )
|
||||
{
|
||||
findTangent( p1Index, p2Index, baseIdx[j], tan0.address(), tan1, _verts );
|
||||
p2Index = baseIdx[j];
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
AssertFatal( false, "TSMesh::createTangents: unknown primitive type!" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue