gl-sphere
Generate all you need to build an webgl sphere based on stack.gl
example
how to use
var createSphere = ;var sphere = ; /*In your render method*/ { /*......*/ shaderuniformsuModelView = spherematrix; spherevertices; shaderattributesaPosition; spherecolors; shaderattributesaColor; spherenormals; shaderattributesaNormal; sphereindices; gl; /*......*/}
how to run demo
npm install
npm run start-example
After running npm start
, a wzrd server should start running on http://localhost:9966/
Enjoy!