[Proc Gen] HeightMap - Threshold operations #197
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
john/McRogueFace#197
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent Issue: #192
Overview
Add threshold operations that return new HeightMap objects, preserving the original.
Specification
Return new HeightMap with original values where in range, 0.0 elsewhere.
Return new HeightMap with
valuewhere in range, 0.0 elsewhere.Return new HeightMap with
(1.0 - value)for each cell.Implementation Notes
thresholdpreserves original values for gradient operations (ColorLayer lerp)threshold_binaryis for pure maskingmin <= value <= maxAcceptance Criteria
thresholdreturns new HeightMap, original unchangedthreshold_binarysets uniform value in rangeinversecorrectly inverts all values