mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
truncation correction
followup to https://github.com/TorqueGameEngines/Torque3D/pull/1639 clean up output calc formatting
This commit is contained in:
parent
e9205027f7
commit
c65343b3c2
2 changed files with 2 additions and 2 deletions
|
|
@ -391,7 +391,7 @@ Var* ShaderFeatureGLSL::getOutTexCoord( const char *name,
|
||||||
{
|
{
|
||||||
// Statement allows for casting of different types which
|
// Statement allows for casting of different types which
|
||||||
// eliminates vector truncation problems.
|
// eliminates vector truncation problems.
|
||||||
String statement = String::ToString( " @ = %s(@ * @);\r\n", type );
|
String statement = String::ToString( " @ = %s(@) * @;\r\n", type );
|
||||||
meta->addStatement( new GenOp( statement, texCoord, inTex, tileScale) );
|
meta->addStatement( new GenOp( statement, texCoord, inTex, tileScale) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -391,7 +391,7 @@ Var* ShaderFeatureHLSL::getOutTexCoord( const char *name,
|
||||||
{
|
{
|
||||||
// Statement allows for casting of different types which
|
// Statement allows for casting of different types which
|
||||||
// eliminates vector truncation problems.
|
// eliminates vector truncation problems.
|
||||||
String statement = String::ToString( " @ = (%s)(@ * @);\r\n", type );
|
String statement = String::ToString( " @ = (%s)(@) * @;\r\n", type );
|
||||||
meta->addStatement( new GenOp( statement, texCoord, inTex, tileScale) );
|
meta->addStatement( new GenOp( statement, texCoord, inTex, tileScale) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue