mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +00:00
Add a new Terrain brush action: Smooth Slope.
This smoothes the terrain using a linear regression algorithm. Exists alongside the oldstyle height averaging action -- options are good!
This commit is contained in:
parent
1ed1a41256
commit
8eb0e98f86
8 changed files with 125 additions and 23 deletions
|
|
@ -269,7 +269,7 @@ inline F32 fixedToFloat( U16 val )
|
|||
/// Conversion from floating point to 11.5 fixed point.
|
||||
inline U16 floatToFixed( F32 val )
|
||||
{
|
||||
return U16(val * 32.0);
|
||||
return U16(val * 32.0 + 0.5f);
|
||||
}
|
||||
|
||||
inline bool TerrainFile::isPointInTerrain( U32 x, U32 y ) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue