mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Merge pull request #722 from Azaezel/Implicit_Truncations
implicit truncation warning cleanup.
This commit is contained in:
commit
4c0811ffb1
1 changed files with 1 additions and 1 deletions
|
|
@ -1679,7 +1679,7 @@ void ReflectCubeFeatHLSL::processVert( Vector<ShaderComponent*> &componentList,
|
||||||
cubeNormal->setType( "float3" );
|
cubeNormal->setType( "float3" );
|
||||||
LangElement *cubeNormDecl = new DecOp( cubeNormal );
|
LangElement *cubeNormDecl = new DecOp( cubeNormal );
|
||||||
|
|
||||||
meta->addStatement( new GenOp( " @ = normalize( mul(@, normalize(@)).xyz );\r\n",
|
meta->addStatement( new GenOp( " @ = normalize( mul(@, float4(normalize(@),0.0)).xyz );\r\n",
|
||||||
cubeNormDecl, cubeTrans, inNormal ) );
|
cubeNormDecl, cubeTrans, inNormal ) );
|
||||||
|
|
||||||
// grab the eye position
|
// grab the eye position
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue