Skip to content

Instantly share code, notes, and snippets.

@pavelvasev
Last active October 19, 2015 19:50
Show Gist options
  • Save pavelvasev/67f8e69f785e88cdcc0d to your computer and use it in GitHub Desktop.
Save pavelvasev/67f8e69f785e88cdcc0d to your computer and use it in GitHub Desktop.
Scene {
Triangles {
positions: {
var a=[];
for (var i=0; i<1000; i++) {
var x=Math.random(100), y=Math.random(100), z=Math.random(100);
for (var j=0; j<3*3; j++)
a.push( x+Math.random(10),y+Math.random(10),z+Math.random(10) );
}
return a;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment