Skip to content

Commit

Permalink
Code review fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
nilscb committed Jul 3, 2024
1 parent 6156de9 commit 8b76d62
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,7 @@ void main(void) {
float propertyValue = property;
// This may happen due to GPU interpolation precision causing color artifacts.
if (propertyValue < valueRangeMin ) {
propertyValue = valueRangeMin;
}
else if (propertyValue > valueRangeMax) {
propertyValue = valueRangeMax;
}
propertyValue = clamp(propertyValue, valueRangeMin, valueRangeMax);
float x = (propertyValue - colorMapRangeMin) / (colorMapRangeMax - colorMapRangeMin);
if (x < 0.0 || x > 1.0) {
Expand Down

0 comments on commit 8b76d62

Please sign in to comment.