mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-22 16:13:45 +00:00
adress odd water values
review of watergrid value exposure and transform saver usage
This commit is contained in:
parent
81504fb089
commit
96134e12ad
4 changed files with 9 additions and 9 deletions
|
|
@ -45,6 +45,7 @@
|
|||
#include "T3D/sfx/sfx3DWorld.h"
|
||||
#include "sfx/sfxTypes.h"
|
||||
#include "console/typeValidators.h"
|
||||
#include "gfx/gfxTransformSaver.h"
|
||||
|
||||
GFXImplementVertexFormat( GFXWaterVertex )
|
||||
{
|
||||
|
|
@ -699,6 +700,8 @@ void WaterObject::prepRenderImage( SceneRenderState *state )
|
|||
if( !state->isDiffusePass() )
|
||||
return;
|
||||
|
||||
GFXTransformSaver saver;
|
||||
|
||||
// Setup scene transforms
|
||||
mMatrixSet->setSceneView(GFX->getWorldMatrix());
|
||||
mMatrixSet->setSceneProjection(GFX->getProjectionMatrix());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue