mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 06:21:29 -04:00
const ref float -> float
This commit is contained in:
parent
ac5b356e8d
commit
9e5db10288
@ -388,7 +388,7 @@ void CSVRender::TerrainShapeMode::applyTerrainEditChanges()
|
|||||||
mAlteredCells.clear();
|
mAlteredCells.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
float CSVRender::TerrainShapeMode::calculateBumpShape(const float& distance, int radius, const float& height)
|
float CSVRender::TerrainShapeMode::calculateBumpShape(float distance, int radius, float height)
|
||||||
{
|
{
|
||||||
float distancePerRadius = distance / radius;
|
float distancePerRadius = distance / radius;
|
||||||
return height - height * (3 * distancePerRadius * distancePerRadius - 2 * distancePerRadius * distancePerRadius * distancePerRadius);
|
return height - height * (3 * distancePerRadius * distancePerRadius - 2 * distancePerRadius * distancePerRadius * distancePerRadius);
|
||||||
|
@ -102,7 +102,7 @@ namespace CSVRender
|
|||||||
void editTerrainShapeGrid (const std::pair<int, int>& vertexCoords, bool dragOperation);
|
void editTerrainShapeGrid (const std::pair<int, int>& vertexCoords, bool dragOperation);
|
||||||
|
|
||||||
/// Calculate height, when aiming for bump-shaped terrain change
|
/// Calculate height, when aiming for bump-shaped terrain change
|
||||||
float calculateBumpShape(const float& distance, int radius, const float& height);
|
float calculateBumpShape(float distance, int radius, float height);
|
||||||
|
|
||||||
/// set the target height for flatten tool
|
/// set the target height for flatten tool
|
||||||
void setFlattenToolTargetHeight(const WorldspaceHitResult& hit);
|
void setFlattenToolTargetHeight(const WorldspaceHitResult& hit);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user