mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
Direct3D11 Engine/source changes
This commit is contained in:
parent
3a9b50f702
commit
41e5caf22b
81 changed files with 1291 additions and 617 deletions
|
|
@ -248,8 +248,18 @@ GFXTextureObject* ReflectionManager::getRefractTex( bool forceUpdate )
|
|||
const U32 desWidth = targetSize.x;
|
||||
const U32 desHeight = targetSize.y;
|
||||
#else
|
||||
const U32 desWidth = mFloor( (F32)targetSize.x * smRefractTexScale );
|
||||
const U32 desHeight = mFloor( ( F32)targetSize.y * smRefractTexScale );
|
||||
U32 desWidth, desHeight;
|
||||
// D3D11 needs to be the same size as the active target
|
||||
if (GFX->getAdapterType() == Direct3D11)
|
||||
{
|
||||
desWidth = targetSize.x;
|
||||
desHeight = targetSize.y;
|
||||
}
|
||||
else
|
||||
{
|
||||
desWidth = mFloor((F32)targetSize.x * smRefractTexScale);
|
||||
desHeight = mFloor((F32)targetSize.y * smRefractTexScale);
|
||||
}
|
||||
#endif
|
||||
|
||||
if ( mRefractTex.isNull() ||
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ DefineEngineMethod( Path, getPathId, S32, (),,
|
|||
//--------------------------------------------------------------------------
|
||||
|
||||
GFXStateBlockRef Marker::smStateBlock;
|
||||
GFXVertexBufferHandle<GFXVertexPC> Marker::smVertexBuffer;
|
||||
GFXVertexBufferHandle<GFXVertexPCT> Marker::smVertexBuffer;
|
||||
GFXPrimitiveBufferHandle Marker::smPrimitiveBuffer;
|
||||
|
||||
static Point3F wedgePoints[4] = {
|
||||
|
|
@ -295,7 +295,7 @@ void Marker::initGFXResources()
|
|||
smStateBlock = GFX->createStateBlock(d);
|
||||
|
||||
smVertexBuffer.set(GFX, 4, GFXBufferTypeStatic);
|
||||
GFXVertexPC* verts = smVertexBuffer.lock();
|
||||
GFXVertexPCT* verts = smVertexBuffer.lock();
|
||||
verts[0].point = wedgePoints[0] * 0.25f;
|
||||
verts[1].point = wedgePoints[1] * 0.25f;
|
||||
verts[2].point = wedgePoints[2] * 0.25f;
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ class Marker : public SceneObject
|
|||
static void initGFXResources();
|
||||
|
||||
static GFXStateBlockRef smStateBlock;
|
||||
static GFXVertexBufferHandle<GFXVertexPC> smVertexBuffer;
|
||||
static GFXVertexBufferHandle<GFXVertexPCT> smVertexBuffer;
|
||||
static GFXPrimitiveBufferHandle smPrimitiveBuffer;
|
||||
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue