Created
June 3, 2014 21:01
-
-
Save mikolalysenko/7ea211792046e1e45f88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var shell = require("gl-now") | |
var camera = require("gl-camera")(shell) | |
var createPoints = require("gl-point-cloud") | |
var points, axes | |
shell.on("gl-init", function() { | |
var gl = shell.gl | |
points = createPoints(gl, { | |
positions: [[1, 0, 0], [0, 1, 0], [0, 0, 1]], | |
glyphs: [ "●", "■", "★" ] | |
}) | |
axes = createAxes(gl, { | |
bounds: [[-1,-1,-1], [1,1,1]] | |
}) | |
}) | |
shell.on("gl-render", function() { | |
points.draw(camera) | |
axes.draw(camera) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment