mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Update shaderFeatureGLSL.cpp
fix compile shader
This commit is contained in:
parent
dd08fd2e7d
commit
2582670925
1 changed files with 1 additions and 1 deletions
|
|
@ -2398,7 +2398,7 @@ void RenderTargetZeroGLSL::processPix( Vector<ShaderComponent*> &componentList,
|
||||||
{
|
{
|
||||||
// Do not actually assign zero, but instead a number so close to zero it may as well be zero.
|
// Do not actually assign zero, but instead a number so close to zero it may as well be zero.
|
||||||
// This will prevent a divide by zero causing an FP special on float render targets
|
// This will prevent a divide by zero causing an FP special on float render targets
|
||||||
output = new GenOp( " @;\r\n", assignColor( new GenOp( "0.00001" ), Material::None, NULL, mOutputTargetMask ) );
|
output = new GenOp( " @;\r\n", assignColor( new GenOp( "vec4(0.00001)" ), Material::None, NULL, mOutputTargetMask ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue