Developer Guide: Using Three.js
Updated: 2017-03-08
SKQW supports both the 2d and 3d contexts of the HTML Canvas. For working with 3d, it is common to use a library to abstract over the low-level WebGL APIs. One popular 3d library is Three.js.
Here is a complete example which recreates the “creating a scene” tutorial example from the Three documentation as a SKQW visualization:
|
|
Loading External Scripts
For more advanced results, you will likely want to load external JavaScript files for things like shaders or effect composers.
To do this, you should use the loadScript()
function from the skqw-core
module.
|
|