You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In engine, game.setBlock will queue the chunk into game.chunksNeedsUpdate. Then game.updateDirtyChunks will loop through those and call game.showChunk: https://github.com/maxogden/voxel-engine/blob/master/index.js#L528 That will then call voxel-mesh to re-mesh the chunk.
If we had a paint by coordinate here, we could just detect if the block is just changing types and paint the new UV coordinates onto the face and have voxel-engine skip all that unless the block is being removed/added.
That way we don't need to re-mesh when changing a block types > 0.
/cc @vladikoff @vogonistic
The text was updated successfully, but these errors were encountered: