aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/precompiled.js
blob: 7932444c70cfdc03bfe8be17907cc78542076112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* <copyright>
This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
(c) Copyright 2011 Motorola Mobility, Inc.  All Rights Reserved.
</copyright> */

/*
 *	A list of shared parameters that all shaders can support (the engine always try to bind these uniforms)
 *	These parameters are compiled into all jshaders and can be set from any jshader
 *	with a call to jshader.global.u_matDiffuse.set([1,0,0,1]) if the jshader depends on that parameter.
 *	To set directly call rdgeGlobalParameters.'param'.set(x), for example rdgeGlobalParameters.u_lightPos.set([1,1,1])
 *	The values can be added to a jshaders params list - this will creating local jshader memory that binds to the parameter
 *	this parameter can be used to set the value for that shader but will not override the global setting
 *	The values set here are the default global values.
 *	note: the rdge_lights substructure can be ignored, the final parameter list contains only the uniform objects
 */