Skip to content

Commit

Permalink
Fixes deprecated method call
Browse files Browse the repository at this point in the history
  • Loading branch information
IceCreamYou committed Jul 5, 2021
1 parent ec40432 commit d941fc0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build/THREE.Terrain.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* THREE.Terrain.js 1.6.0-20210704
* THREE.Terrain.js 1.6.0-20210705
*
* @author Isaac Sukin (http://www.isaacsukin.com/)
* @license MIT
Expand Down Expand Up @@ -1585,7 +1585,7 @@ THREE.Terrain.SimplexLayers = function(g, options) {
THREE.Terrain.Value = function(g, options) {
// Set the segment length to the smallest power of 2 that is greater
// than the number of vertices in either dimension of the plane
var segments = THREE.Math.nextPowerOfTwo(Math.max(options.xSegments, options.ySegments) + 1);
var segments = THREE.Math.ceilPowerOfTwo(Math.max(options.xSegments, options.ySegments) + 1);

// Store the array of white noise outside of the WhiteNoise function to
// avoid allocating a bunch of unnecessary arrays; we can just
Expand Down
Loading

0 comments on commit d941fc0

Please sign in to comment.