Tutorial show coins

This commit is contained in:
Thomas FORGIONE 2015-10-06 12:17:59 +02:00
parent dec10acdb5
commit cc4755cf9d
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ function main() {
xhr.onreadystatechange = function() {
if (xhr.readyState == 4 && xhr.status == 200) {
coins.forEach(function(elt) {
elt.mesh.visible = true;
});
init(JSON.parse(xhr.responseText));
onWindowResize();
setInterval(render, 20);