var exampleScene = scene(
{},
/* A renderer node binds subnodes to a WebGL canvas element
defined in the HTML tab then clears the depth and colour buffers
*/
renderer({
canvasId: 'theCanvas',
clear : { depth : true, color : true}
},
/* A simple phong GLSL shader to render sub-‐nodes, with
a single light source. This shader type only supports
a one light source.
*/
shader(
{ type: 'simple-‐shader' },
lights( scenejs.org
{
lights: [
{
pos: { x: -‐30.0, y: 30.0, z: -‐30.0 }
}
]},
/* Perspective transformation
*/