HunterLarco / voxel.css

A lightweight 3D CSS voxel library.
http://voxelcss.com
MIT License
3.35k stars 128 forks source link

Two voxels at same location with same dimension glitch #23

Closed Avery246813579 closed 7 years ago

Avery246813579 commented 8 years ago

If two voxels are added to the same location with the same dimensions, a visual glitch will happen!

What it looks like: http://prntscr.com/9wypm3 How to replicate it: https://gist.github.com/Avery246813579/22fb1c36adcbb2e06e36

I would suggest checking if there is a voxel already at a certain location with the same dimensions, and either removing the voxel already there, or not drawing one of the voxels.

I could fix with a pull request.