aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/src/core/script/precompiled.js
diff options
context:
space:
mode:
authorKris Kowal2012-07-06 11:52:06 -0700
committerKris Kowal2012-07-06 15:01:48 -0700
commit648ee61ae84216d0236e0dbc211addc13b2cfa3a (patch)
tree8f0f55557bd0c47a84e49c1977c950645d284607 /js/helper-classes/RDGE/src/core/script/precompiled.js
parentaedd14b18695d031f695d27dfbd94df5614495bb (diff)
downloadninja-648ee61ae84216d0236e0dbc211addc13b2cfa3a.tar.gz
Expand tabs
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/precompiled.js')
-rwxr-xr-xjs/helper-classes/RDGE/src/core/script/precompiled.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/precompiled.js b/js/helper-classes/RDGE/src/core/script/precompiled.js
index a83631b9..22b82adb 100755
--- a/js/helper-classes/RDGE/src/core/script/precompiled.js
+++ b/js/helper-classes/RDGE/src/core/script/precompiled.js
@@ -29,14 +29,14 @@ POSSIBILITY OF SUCH DAMAGE.
29</copyright> */ 29</copyright> */
30 30
31/* 31/*
32* A list of shared parameters that all shaders can support (the engine always try to bind these uniforms) 32* A list of shared parameters that all shaders can support (the engine always try to bind these uniforms)
33* These parameters are compiled into all jshaders and can be set from any jshader 33* These parameters are compiled into all jshaders and can be set from any jshader
34* with a call to jshader.global.u_matDiffuse.set([1,0,0,1]) if the jshader depends on that parameter. 34* with a call to jshader.global.u_matDiffuse.set([1,0,0,1]) if the jshader depends on that parameter.
35* To set directly call rdgeGlobalParameters.'param'.set(x), for example rdgeGlobalParameters.u_lightPos.set([1,1,1]) 35* To set directly call rdgeGlobalParameters.'param'.set(x), for example rdgeGlobalParameters.u_lightPos.set([1,1,1])
36* The values can be added to a jshaders params list - this will creating local jshader memory that binds to the parameter 36* The values can be added to a jshaders params list - this will creating local jshader memory that binds to the parameter
37* this parameter can be used to set the value for that shader but will not override the global setting 37* this parameter can be used to set the value for that shader but will not override the global setting
38* The values set here are the default global values. 38* The values set here are the default global values.
39* note: the rdge_lights substructure can be ignored, the final parameter list contains only the uniform objects 39* note: the rdge_lights substructure can be ignored, the final parameter list contains only the uniform objects
40*/ 40*/
41 41
42var RDGE = RDGE || {}; 42var RDGE = RDGE || {};
@@ -77,11 +77,11 @@ RDGE.rdgeGlobalParameters =
77 "u_light3Spec": { 'type': 'vec4', 'data': [1.0, 1.0, 1.0, 1.0] } 77 "u_light3Spec": { 'type': 'vec4', 'data': [1.0, 1.0, 1.0, 1.0] }
78 }, 78 },
79 "colMap": { 'type': 'tex2d', 'data': "assets/images/white.png" }, 79 "colMap": { 'type': 'tex2d', 'data': "assets/images/white.png" },
80 //"envMap": {'type': 'tex2d', 'data': null}, 80 //"envMap": {'type': 'tex2d', 'data': null},
81 //"normalMap": {'type': 'tex2d', 'data': null}, 81 //"normalMap": {'type': 'tex2d', 'data': null},
82 //"glowMap": {'type': 'tex2d', 'data': "assets/images/black.png"}, 82 //"glowMap": {'type': 'tex2d', 'data': "assets/images/black.png"},
83 //"u_shadowDepthMap": {'type': 'tex2d', 'data': null}, 83 //"u_shadowDepthMap": {'type': 'tex2d', 'data': null},
84 //"u_depthMap": {'type': 'tex2d', 'data': null}, 84 //"u_depthMap": {'type': 'tex2d', 'data': null},
85 "u_matAmbient": { 'type': 'vec4', 'data': [1.00, 1.00, 1.00, 1] }, 85 "u_matAmbient": { 'type': 'vec4', 'data': [1.00, 1.00, 1.00, 1] },
86 "u_matDiffuse": { 'type': 'vec4', 'data': [1.0, 1.0, 1.0, 1.0] }, 86 "u_matDiffuse": { 'type': 'vec4', 'data': [1.0, 1.0, 1.0, 1.0] },
87 "u_matSpecular": { 'type': 'vec4', 'data': [1.0, 1.0, 1.0, 1.0] }, 87 "u_matSpecular": { 'type': 'vec4', 'data': [1.0, 1.0, 1.0, 1.0] },