Zemanzo / web-marbles

Aims to recreate Marble Racing from the ground up, as a fully web based game
https://playmarbl.es/
GNU General Public License v3.0
23 stars 12 forks source link

Render refactor & dependency updates #149

Closed Zemanzo closed 5 years ago

Zemanzo commented 5 years ago

With this PR, the client and the editor share a rendering script, so that there no longer is duplicate code for rendering. It should also get rid of all WebGL warnings.

The gist of the new system is that there is a main scene that gets rendered which contains only the camera and marbles, and a child scene for every map (although usually that's only a single map). A map contains all aesthetics, including the skybox and water plane.

Closes #68 Closes #69 Also magically fixes #3 (because it seemed fine?) although I have no idea why.