diff options
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/precompiled.js')
-rwxr-xr-x | js/helper-classes/RDGE/src/core/script/precompiled.js | 26 |
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 | ||
42 | var RDGE = RDGE || {}; | 42 | var 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] }, |