A new SceneJS.Matrix node defines a view/model space
transformation to apply to its sub-graph. Formerly, this was
provides in model and view space separately by SceneJS.ViewMatrix
and SceneModelMatrix. The introduction of SceneJS.Camera in V0.7.5
now provides SceneJS with a demarcation of view and model spaces
within a graph, so now the same set of transform nodes may now
apply to either space, depending on where they are defined in the
graph.
Example
A cube translated along the X, Y and Z axis:
var mat = new SceneJS.Matrix({
elements : [ 1, 0, 0, 10,
0, 1, 0, 5,
0, 0, 1, 3,
0, 0, 0, 1
]
}, new SceneJS.objects.Cube()
)