mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
embeds blendtotal into the low bit for the normal|depth buffer for terrains to support multi-pass blending.
This commit is contained in:
parent
8cae1e5dcb
commit
598fb758f3
3 changed files with 14 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue