IceCreamYou / THREE.Terrain

A procedural terrain generation engine for use with the Three.js 3D graphics library for the web.
https://icecreamyou.github.io/THREE.Terrain/
MIT License
706 stars 109 forks source link

Wrong variable name in scatter.js #33

Closed c4b4d4 closed 2 years ago

c4b4d4 commented 2 years ago

I think that from your lasts commits, this variable didn't get changed:

https://github.com/IceCreamYou/THREE.Terrain/blob/562488f3aa404a2c4a02c3bb29aebd8a2a180e3d/src/scatter.js#L99

I think it should now be:

randomness(i/9);

'Cause loop now looks like this:

https://github.com/IceCreamYou/THREE.Terrain/blob/562488f3aa404a2c4a02c3bb29aebd8a2a180e3d/src/scatter.js#L91

IceCreamYou commented 2 years ago

Fixed, thank you. Good catch.