Fix compilation warnings under Clang 10
This commit is contained in:
@@ -20,7 +20,7 @@ void TerrainChunk::Init(TerrainPatch* patch, uint16 x, uint16 z)
|
||||
_yOffset = 0;
|
||||
_yHeight = 1;
|
||||
_heightmapUVScaleBias = Vector4(1.0f, 1.0f, _x, _z) * (1.0f / TerrainPatch::CHUNKS_COUNT_EDGE);
|
||||
_perInstanceRandom = (_patch->_terrain->_id.C ^ _x ^ _z) * (1.0f / MAX_uint32);
|
||||
_perInstanceRandom = (_patch->_terrain->_id.C ^ _x ^ _z) * (1.0f / (float)MAX_uint32);
|
||||
OverrideMaterial = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user