max-mapper / voxel-engine

3D HTML5 voxel game engine
http://maxogden.github.com/voxel-engine
BSD 3-Clause "New" or "Revised" License
1.29k stars 220 forks source link

Support dynamically changing mesh type at runtime #93

Closed deathcap closed 10 years ago

deathcap commented 10 years ago

Allows the meshing type to be changed live, for example:

game.meshType = 'wireFrame'
game.showAllChunks()

to switch all chunks from surface meshes to wire framing, no reloading needed:

e19903303b641faced67c456aa5f280c

Useful for testing different meshing algorithms (game.mesher can already be changed at runtime without issue).

max-mapper commented 10 years ago

awesomeness, thanks!

deathcap commented 10 years ago

thank you :) related PR to allow configuring these properties in voxel-debug: https://github.com/shama/voxel-debug/pull/1