|
@@ -2178,11 +2178,14 @@ void RTLightingFeatHLSL::processVert( Vector<ShaderComponent*> &componentList,
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ addOutWsPosition( componentList, fd.features[MFT_UseInstancing], meta );
|
|
|
+ getOutWorldToTangent(componentList, meta, fd);
|
|
|
+ output = meta;
|
|
|
+
|
|
|
+
|
|
|
// Find the incoming vertex normal.
|
|
|
Var *inNormal = (Var*)LangElement::find( "normal" );
|
|
|
|
|
|
- // Skip out on realtime lighting if we don't have a normal
|
|
|
- // or we're doing some sort of baked lighting.
|
|
|
if ( !inNormal ||
|
|
|
fd.features[MFT_LightMap] ||
|
|
|
fd.features[MFT_ToneMap] ||
|
|
@@ -2205,11 +2208,6 @@ void RTLightingFeatHLSL::processVert( Vector<ShaderComponent*> &componentList,
|
|
|
// Transform the normal to world space.
|
|
|
meta->addStatement( new GenOp( " @ = mul( @, float4( normalize( @ ), 0.0 ) ).xyz;\r\n", outNormal, objTrans, inNormal ) );
|
|
|
}
|
|
|
-
|
|
|
- addOutWsPosition( componentList, fd.features[MFT_UseInstancing], meta );
|
|
|
- getOutWorldToTangent(componentList, meta, fd);
|
|
|
-
|
|
|
- output = meta;
|
|
|
}
|
|
|
|
|
|
void RTLightingFeatHLSL::processPix( Vector<ShaderComponent*> &componentList,
|