mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-10 14:14:33 +00:00
Merge branch 'GarageGames/master' into ueberengine-dev
Conflicts: Engine/source/T3D/fps/guiCrossHairHud.cpp
This commit is contained in:
commit
81750f3deb
2827 changed files with 315755 additions and 121398 deletions
|
|
@ -514,23 +514,23 @@ void PostEffect::_updateScreenGeometry( const Frustum &frustum,
|
|||
|
||||
PFXVertex *vert = outVB->lock();
|
||||
|
||||
vert->point.set( -1.0, -1.0, 0.0 );
|
||||
vert->texCoord.set( 0.0f, 1.0f );
|
||||
vert->wsEyeRay = frustumPoints[Frustum::FarBottomLeft] - cameraOffsetPos;
|
||||
vert++;
|
||||
|
||||
vert->point.set( -1.0, 1.0, 0.0 );
|
||||
vert->texCoord.set( 0.0f, 0.0f );
|
||||
vert->point.set(-1.0, 1.0, 0.0);
|
||||
vert->texCoord.set(0.0f, 0.0f);
|
||||
vert->wsEyeRay = frustumPoints[Frustum::FarTopLeft] - cameraOffsetPos;
|
||||
vert++;
|
||||
|
||||
vert->point.set( 1.0, 1.0, 0.0 );
|
||||
vert->texCoord.set( 1.0f, 0.0f );
|
||||
vert->point.set(1.0, 1.0, 0.0);
|
||||
vert->texCoord.set(1.0f, 0.0f);
|
||||
vert->wsEyeRay = frustumPoints[Frustum::FarTopRight] - cameraOffsetPos;
|
||||
vert++;
|
||||
|
||||
vert->point.set( 1.0, -1.0, 0.0 );
|
||||
vert->texCoord.set( 1.0f, 1.0f );
|
||||
vert->point.set(-1.0, -1.0, 0.0);
|
||||
vert->texCoord.set(0.0f, 1.0f);
|
||||
vert->wsEyeRay = frustumPoints[Frustum::FarBottomLeft] - cameraOffsetPos;
|
||||
vert++;
|
||||
|
||||
vert->point.set(1.0, -1.0, 0.0);
|
||||
vert->texCoord.set(1.0f, 1.0f);
|
||||
vert->wsEyeRay = frustumPoints[Frustum::FarBottomRight] - cameraOffsetPos;
|
||||
vert++;
|
||||
|
||||
|
|
@ -1363,7 +1363,7 @@ void PostEffect::process( const SceneRenderState *state,
|
|||
|
||||
// Draw it.
|
||||
GFX->setVertexBuffer( vb );
|
||||
GFX->drawPrimitive( GFXTriangleFan, 0, 2 );
|
||||
GFX->drawPrimitive( GFXTriangleStrip, 0, 2 );
|
||||
|
||||
// Allow PostEffecVis to hook in.
|
||||
PFXVIS->onPFXProcessed( this );
|
||||
|
|
@ -1831,4 +1831,4 @@ DefineEngineFunction( dumpRandomNormalMap, void, (),,
|
|||
|
||||
String path = Torque::FS::MakeUniquePath( "", "randNormTex", "png" );
|
||||
tex->dumpToDisk( "png", path );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue