We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23defe0 commit 9bc069eCopy full SHA for 9bc069e
src/client/scripts/World/World.coffee
@@ -208,11 +208,12 @@ class World
208
type:"genCellGeo"
209
data:[cellX,cellY,cellZ]
210
}
211
+
212
_updateCellsAroundPlayer: (radius)->
213
+ pos=@game.camera.position
214
+ cell=@cellTerrain.computeCellForVoxel (Math.floor pos.x+0.5),(Math.floor pos.y+0.5),(Math.floor pos.z+0.5)
215
+ @updateRenderOrder cell
216
if @cellUpdateTime isnt null and (performance.now()-@cellUpdateTime>@renderTime)
- pos=@game.camera.position
- cell=@cellTerrain.computeCellForVoxel (Math.floor pos.x),(Math.floor pos.y),(Math.floor pos.z)
- @updateRenderOrder cell
217
@chunkWorker.postMessage {
218
type:"updateCellsAroundPlayer"
219
data:[cell,radius]
0 commit comments