diff options
Diffstat (limited to 'o3d/samples/o3d-webgl/draw_context.js')
-rw-r--r-- | o3d/samples/o3d-webgl/draw_context.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/o3d/samples/o3d-webgl/draw_context.js b/o3d/samples/o3d-webgl/draw_context.js index 0b4967c..dde73e8 100644 --- a/o3d/samples/o3d-webgl/draw_context.js +++ b/o3d/samples/o3d-webgl/draw_context.js @@ -49,8 +49,7 @@ o3d.DrawContext = function(opt_view, opt_projection) { * take vertices from world space to view space. * @type {o3d.Matrix4} */ - this.view = opt_view || - [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]; + this.view = opt_view || o3d.Transform.makeIdentityMatrix4_(); /** * The projection matrix represents the projection transformation, @@ -58,8 +57,7 @@ o3d.DrawContext = function(opt_view, opt_projection) { * matrix is usually an orthographic or perspective transformation. * @type {o3d.Matrix4} */ - this.projection = opt_projection || - [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]; + this.projection = opt_projection || o3d.Transform.makeIdentityMatrix4_(); }; o3d.inherit('DrawContext', 'ParamObject'); |