embeds blendtotal into the low bit for the normal|depth buffer for terrains to support multi-pass blending.

This commit is contained in:
Azaezel 2016-09-14 15:35:35 -05:00
parent 8cae1e5dcb
commit 598fb758f3
3 changed files with 14 additions and 2 deletions

View file

@ -548,8 +548,8 @@ bool TerrainCellMaterial::_createPass( Vector<MaterialInfo*> *materials,
// MFT_TerrainAdditive feature to lerp the
// output normal with the previous pass.
//
//if ( prePassMat )
//desc.setColorWrites( true, true, false, false );
if ( prePassMat )
desc.setColorWrites( true, true, true, false );
}
// We write to the zbuffer if this is a prepass