Browse Source

implicit truncation warning cleanup.

Azaezel 11 years ago
parent
commit
c3813ad913
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp

+ 1 - 1
Engine/source/shaderGen/HLSL/shaderFeatureHLSL.cpp

@@ -1679,7 +1679,7 @@ void ReflectCubeFeatHLSL::processVert( Vector<ShaderComponent*> &componentList,
     cubeNormal->setType( "float3" );
     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 ) );
 
     // grab the eye position