|
@@ -545,8 +545,8 @@ void TerrainDetailMapFeatHLSL::processPix( Vector<ShaderComponent*> &component
|
|
|
Var *baseColor = (Var*)LangElement::find( "baseColor" );
|
|
|
Var *outColor = (Var*)LangElement::find( "col" );
|
|
|
|
|
|
- meta->addStatement( new GenOp( " @ = lerp( @, @ + @, @ );\r\n",
|
|
|
- outColor, outColor, baseColor, detailColor, detailBlend ) );
|
|
|
+ meta->addStatement( new GenOp( " @ += @ * @;\r\n",
|
|
|
+ outColor, detailColor, detailBlend));
|
|
|
|
|
|
meta->addStatement( new GenOp( " }\r\n" ) );
|
|
|
|
|
@@ -742,7 +742,7 @@ void TerrainMacroMapFeatHLSL::processPix( Vector<ShaderComponent*> &componentL
|
|
|
}
|
|
|
|
|
|
// Add to the blend total.
|
|
|
- meta->addStatement( new GenOp( " @ = max( @, @ );\r\n", blendTotal, blendTotal, detailBlend ) );
|
|
|
+ meta->addStatement( new GenOp( " @ += @;\r\n", blendTotal, detailBlend ) );
|
|
|
|
|
|
// If this is a prepass then we skip color.
|
|
|
if ( fd.features.hasFeature( MFT_PrePassConditioner ) )
|
|
@@ -815,9 +815,8 @@ void TerrainMacroMapFeatHLSL::processPix( Vector<ShaderComponent*> &componentL
|
|
|
//Var *baseColor = (Var*)LangElement::find( "baseColor" );
|
|
|
Var *outColor = (Var*)LangElement::find( "col" );
|
|
|
|
|
|
- meta->addStatement( new GenOp( " @ = lerp( @, @ + @, @ );\r\n",
|
|
|
- outColor, outColor, outColor, detailColor, detailBlend ) );
|
|
|
- //outColor, outColor, baseColor, detailColor, detailBlend ) );
|
|
|
+ meta->addStatement(new GenOp(" @ += @ * @;\r\n",
|
|
|
+ outColor, detailColor, detailBlend));
|
|
|
|
|
|
meta->addStatement( new GenOp( " }\r\n" ) );
|
|
|
|