Merged weblgl tetrus renderer

Refactored renderer to make it simpler
and more readable.