from @rextimmy: shifts sybox rendering to last (kils a bit of overdraw)

This commit is contained in:
Azaezel 2018-11-18 06:36:16 -06:00
parent f0924c8dcd
commit f75a9ccd24
4 changed files with 14 additions and 7 deletions

View file

@ -1659,7 +1659,10 @@ void VertPositionGLSL::processVert( Vector<ShaderComponent*> &componentList,
meta->addStatement( new GenOp( " @ = tMul(@, vec4(@.xyz,1));\r\n",
outPosition, modelview, inPosition ) );
if (fd.materialFeatures[MFT_SkyBox])
{
meta->addStatement(new GenOp(" @ = @.xyww;\r\n", outPosition, outPosition));
}
output = meta;
}