A simple boiler plate for those of us new to webgl.
Just grab a copy here: https://github.com/GSPBetaGroup/BoilerGL and get started by removing the default geometries.
You have two functions at the top of the script. One to “init” the experience:
You can see I’ve added a box and a sphere here, by default. Feel free to remove these. Then, a second function called “loop” where you can control the animations of the items:
You can see here, I’m the objects above are gently floating, but you can remove this as well!
That’s it. Two functions, should be fairly easy to get started now.
Thanks to Marpi for contributing the initial code to get this started. I simply re-worked his code to make it easier to use.