mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
Merge pull request #608 from BeamNG/use_gfxdevice_setupgenericshaders
Use GFXDevice::setupGenericShaders for support non Fixed Fuction Pipelines.
This commit is contained in:
commit
1c95ce21d6
12 changed files with 14 additions and 16 deletions
|
|
@ -214,7 +214,7 @@ void CameraSpline::renderTimeMap()
|
|||
|
||||
// Render the buffer
|
||||
GFX->pushWorldMatrix();
|
||||
GFX->disableShaders();
|
||||
GFX->setupGenericShaders();
|
||||
GFX->setVertexBuffer(vb);
|
||||
GFX->drawPrimitive(GFXLineStrip,0,index);
|
||||
GFX->popWorldMatrix();
|
||||
|
|
|
|||
|
|
@ -1666,7 +1666,7 @@ void Precipitation::renderObject(ObjectRenderInst *ri, SceneRenderState *state,
|
|||
}
|
||||
else
|
||||
{
|
||||
GFX->disableShaders();
|
||||
GFX->setupGenericShaders(GFXDevice::GSTexture);
|
||||
|
||||
// We don't support distance fade or lighting without shaders.
|
||||
GFX->setStateBlock(mDistantSB);
|
||||
|
|
@ -1799,7 +1799,7 @@ void Precipitation::renderObject(ObjectRenderInst *ri, SceneRenderState *state,
|
|||
GFX->setShaderConstBuffer(mSplashShaderConsts);
|
||||
}
|
||||
else
|
||||
GFX->disableShaders();
|
||||
GFX->setupGenericShaders(GFXDevice::GSTexture);
|
||||
|
||||
while (curr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue