mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Fix for fuzzy borders
This commit is contained in:
parent
ad7b75de09
commit
a3f08df9e3
2 changed files with 2 additions and 2 deletions
|
|
@ -730,7 +730,7 @@ void TerrainMacroMapFeatHLSL::processPix( Vector<ShaderComponent*> &componentL
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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 this is a prepass then we skip color.
|
// If this is a prepass then we skip color.
|
||||||
if ( fd.features.hasFeature( MFT_PrePassConditioner ) )
|
if ( fd.features.hasFeature( MFT_PrePassConditioner ) )
|
||||||
|
|
|
||||||
|
|
@ -170,7 +170,7 @@ bool TerrainBlock::_initBaseShader()
|
||||||
desc.zDefined = true;
|
desc.zDefined = true;
|
||||||
desc.zWriteEnable = false;
|
desc.zWriteEnable = false;
|
||||||
desc.zEnable = false;
|
desc.zEnable = false;
|
||||||
desc.setBlend( true, GFXBlendSrcAlpha, GFXBlendOne );
|
desc.setBlend( true, GFXBlendSrcAlpha, GFXBlendInvSrcAlpha );
|
||||||
desc.cullDefined = true;
|
desc.cullDefined = true;
|
||||||
desc.cullMode = GFXCullNone;
|
desc.cullMode = GFXCullNone;
|
||||||
desc.colorWriteAlpha = false;
|
desc.colorWriteAlpha = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue