Skip to content

Commit a212dcb

Browse files
committed
some fog fixes
1 parent 17d8e13 commit a212dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/rendering/DistanceBasedFog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class DistanceBasedFog {
1010
}
1111

1212
updateDistance (val) {
13-
this.farnear.x = (val - 2) * 16
13+
this.farnear.x = (Math.sqrt(val)) * 16
1414
this.farnear.y = (val - 1) * 16
1515
}
1616

0 commit comments

Comments
 (0)