|
@@ -568,7 +568,7 @@ void TerrainDetailMapFeatGLSL::processPix( Vector<ShaderComponent*> &component
|
|
}
|
|
}
|
|
|
|
|
|
// Add to the blend total.
|
|
// Add to the blend total.
|
|
- meta->addStatement( new GenOp( " @ += @;\r\n", blendTotal, detailBlend ) );
|
|
|
|
|
|
+ meta->addStatement(new GenOp(" @ = max( @, @ );\r\n", blendTotal, blendTotal, detailBlend));
|
|
|
|
|
|
// If we had a parallax feature... then factor in the parallax
|
|
// If we had a parallax feature... then factor in the parallax
|
|
// amount so that it fades out with the layer blending.
|
|
// amount so that it fades out with the layer blending.
|
|
@@ -820,7 +820,7 @@ void TerrainMacroMapFeatGLSL::processPix( Vector<ShaderComponent*> &componentL
|
|
}
|
|
}
|
|
|
|
|
|
// Add to the blend total.
|
|
// Add to the blend total.
|
|
- meta->addStatement( new GenOp( " @ += @;\r\n", blendTotal, detailBlend ) );
|
|
|
|
|
|
+ meta->addStatement(new GenOp(" @ = max( @, @ );\r\n", blendTotal, blendTotal, detailBlend));
|
|
|
|
|
|
Var *detailColor = (Var*)LangElement::find( "macroColor" );
|
|
Var *detailColor = (Var*)LangElement::find( "macroColor" );
|
|
if ( !detailColor )
|
|
if ( !detailColor )
|