Przeglądaj źródła

BlendTotal is now an actual total rather than a max

Lukas Joergensen 11 lat temu
rodzic
commit
9612d3c290
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Engine/source/terrain/hlsl/terrFeatureHLSL.cpp

+ 1 - 1
Engine/source/terrain/hlsl/terrFeatureHLSL.cpp

@@ -446,7 +446,7 @@ void TerrainDetailMapFeatHLSL::processPix(   Vector<ShaderComponent*> &component
    }
    }
 
 
    // Add to the blend total.
    // Add to the blend total.
-   meta->addStatement( new GenOp( "   @ = max( @, @ );\r\n", blendTotal, blendTotal, detailBlend ) );
+   meta->addStatement( new GenOp( "   @ += @;\r\n", 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.