Index: samples/o3d-webgl/draw_list.js |
=================================================================== |
--- samples/o3d-webgl/draw_list.js (revision 45983) |
+++ samples/o3d-webgl/draw_list.js (working copy) |
@@ -60,7 +60,7 @@ |
* BY_PERFORMANCE |
* BY_Z_ORDER |
* BY_PRIORITY |
- * |
+ * |
* Method to sort DrawList by. |
*/ |
o3d.DrawList.BY_PERFORMANCE = 0; |
@@ -77,6 +77,8 @@ |
var drawElementInfo = this.list_[i]; |
var world = drawElementInfo.world; |
var view = drawElementInfo.view; |
+ var viewProjection = drawElementInfo.viewProjection; |
+ var worldViewProjection = drawElementInfo.worldViewProjection; |
var projection = drawElementInfo.projection; |
var transform = drawElementInfo.transform; |
var drawElement = drawElementInfo.drawElement; |
@@ -88,6 +90,8 @@ |
o3d.Param.SAS.setWorld(world); |
o3d.Param.SAS.setView(view); |
o3d.Param.SAS.setProjection(projection); |
+ o3d.Param.SAS.setViewProjection(viewProjection); |
+ o3d.Param.SAS.setWorldViewProjection(worldViewProjection); |
var paramObjects = [ |
transform, |