aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/src/core/script/scenegraph.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/scenegraph.js')
-rwxr-xr-xjs/helper-classes/RDGE/src/core/script/scenegraph.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/scenegraph.js b/js/helper-classes/RDGE/src/core/script/scenegraph.js
index 92fe98c8..789f69e5 100755
--- a/js/helper-classes/RDGE/src/core/script/scenegraph.js
+++ b/js/helper-classes/RDGE/src/core/script/scenegraph.js
@@ -74,8 +74,8 @@ RDGE.SceneGraph = function (scene) {
74 this.bckTypes = RDGE.rdgeConstants.categoryEnumeration; 74 this.bckTypes = RDGE.rdgeConstants.categoryEnumeration;
75 75
76 this.renderList = new Array(this.bckTypes.MAX_CAT); 76 this.renderList = new Array(this.bckTypes.MAX_CAT);
77 this.renderList[this.bckTypes.BACKGROUND] = []; //BACKGROUND 77 this.renderList[this.bckTypes.BACKGROUND] = []; //BACKGROUND
78 this.renderList[this.bckTypes.OPAQUE] = []; //OPAQUE 78 this.renderList[this.bckTypes.OPAQUE] = []; //OPAQUE
79 this.renderList[this.bckTypes.TRANSPARENT] = []; //TRANSPARENT 79 this.renderList[this.bckTypes.TRANSPARENT] = []; //TRANSPARENT
80 this.renderList[this.bckTypes.ADDITIVE] = []; //ADDITIVE 80 this.renderList[this.bckTypes.ADDITIVE] = []; //ADDITIVE
81 this.renderList[this.bckTypes.TRANSLUCENT] = []; //TRANSLUCENT 81 this.renderList[this.bckTypes.TRANSLUCENT] = []; //TRANSLUCENT
@@ -170,7 +170,7 @@ RDGE.SceneGraph = function (scene) {
170 // 'technique': "depthMap", 170 // 'technique': "depthMap",
171 // 'outputs':[{ 'name':"u_depthMap", 'type':"target", 'width':1024, 'height':1024, 'mips':false }], 171 // 'outputs':[{ 'name':"u_depthMap", 'type':"target", 'width':1024, 'height':1024, 'mips':false }],
172 // 'geometrySet':"ALL", 172 // 'geometrySet':"ALL",
173 // 'children' : 173 // 'children' :
174 // [ 174 // [
175 // // get the normals in view space 175 // // get the normals in view space
176 // { 176 // {
@@ -178,10 +178,10 @@ RDGE.SceneGraph = function (scene) {
178 // 'shader': RDGE.rdgeViewSpaceNormalsShader, 178 // 'shader': RDGE.rdgeViewSpaceNormalsShader,
179 // 'outputs':[{ 'name':"u_normalsRT", 'type':"target", 'width':1024, 'height':1024, 'mips':false }], 179 // 'outputs':[{ 'name':"u_normalsRT", 'type':"target", 'width':1024, 'height':1024, 'mips':false }],
180 // 'geometrySet':"ALL", 180 // 'geometrySet':"ALL",
181 // 'children' : 181 // 'children' :
182 // [ 182 // [
183 // // techniques requiring depth and normals in view space go here 183 // // techniques requiring depth and normals in view space go here
184 // 184 //
185 // // SSAO map 185 // // SSAO map
186 // { 186 // {
187 // 'name':"SSAO", 187 // 'name':"SSAO",
@@ -198,7 +198,7 @@ RDGE.SceneGraph = function (scene) {
198 // } 198 // }
199 // ] 199 // ]
200 // }, 200 // },
201 // 201 //
202 // // final pass must always be last in the list 202 // // final pass must always be last in the list
203 // { 203 // {
204 // // this final pass has no output, its shader, however, will render its input (the previous pass's output) 204 // // this final pass has no output, its shader, however, will render its input (the previous pass's output)
@@ -374,7 +374,7 @@ RDGE.SceneGraph = function (scene) {
374 // get the distance from object to cameras' 'z' plane 374 // get the distance from object to cameras' 'z' plane
375 item.depth = RDGE.vec3.dot(look, toObject); 375 item.depth = RDGE.vec3.dot(look, toObject);
376 376
377 // walk down the list of object moving the current item into place until the comparison fails 377 // walk down the list of object moving the current item into place until the comparison fails
378 var i = len - 1; 378 var i = len - 1;
379 var temp = null; 379 var temp = null;
380 for (; i > 0; --i) { 380 for (; i > 0; --i) {
@@ -648,7 +648,7 @@ RDGE.SceneGraph.prototype.BuildBVHHelper = function (node) {
648 curNode.world = RDGE.mat4.mul(curNode.local, parentXfrm); 648 curNode.world = RDGE.mat4.mul(curNode.local, parentXfrm);
649 649
650 if (bbox) { 650 if (bbox) {
651 // update bounding box position 651 // update bounding box position
652 curNode.bbox_world = bbox.transform(curNode.world); 652 curNode.bbox_world = bbox.transform(curNode.world);
653 } 653 }
654 654
@@ -805,8 +805,8 @@ RDGE.SceneGraph.prototype.GetBBoxForNode = function (tr) {
805 805
806RDGE.SceneGraph.prototype._RenderDFHelper = function (renderer, renderProc, node, forceThisProc) { 806RDGE.SceneGraph.prototype._RenderDFHelper = function (renderer, renderProc, node, forceThisProc) {
807 renderList = []; 807 renderList = [];
808 renderList[this.bckTypes.BACKGROUND] = []; //BACKGROUND 808 renderList[this.bckTypes.BACKGROUND] = []; //BACKGROUND
809 renderList[this.bckTypes.OPAQUE] = []; //OPAQUE 809 renderList[this.bckTypes.OPAQUE] = []; //OPAQUE
810 renderList[this.bckTypes.TRANSPARENT] = []; //TRANSPARENT 810 renderList[this.bckTypes.TRANSPARENT] = []; //TRANSPARENT
811 renderList[this.bckTypes.ADDITIVE] = []; //ADDITIVE 811 renderList[this.bckTypes.ADDITIVE] = []; //ADDITIVE
812 renderList[this.bckTypes.TRANSLUCENT] = []; //TRANSLUCENT 812 renderList[this.bckTypes.TRANSLUCENT] = []; //TRANSLUCENT
@@ -959,7 +959,7 @@ RDGE.SceneGraph.prototype.exportJSON = function () {
959 // return 'replaced'; 959 // return 'replaced';
960 // } 960 // }
961 // } 961 // }
962 // 962 //
963 // if(value && value.baseURI === undefined && typeof value === "object" && !value.lookUpName) 963 // if(value && value.baseURI === undefined && typeof value === "object" && !value.lookUpName)
964 // objMap.push(value); 964 // objMap.push(value);
965 965