@@ -20,103 +20,103 @@ var ConstantElement = function (gl, shaderPipeline, descriptor) {
2020 }
2121
2222 switch ( descriptor . type ) {
23- case PipelineState . TYPE_FLOAT :
23+ case ConstantElement . TYPE_FLOAT :
2424 PHASER_ASSERT ( ( this . dataReference instanceof Float32Array ) , 'Invalid type for constant refenrece data' ) ;
2525 this . update = function ( ) {
2626 gl . uniform1fv ( this . location , this . dataReference ) ;
2727 } ;
2828 break ;
29- case PipelineState . TYPE_INT :
29+ case ConstantElement . TYPE_INT :
3030 PHASER_ASSERT ( ( this . dataReference instanceof Int32Array ) , 'Invalid type for constant refenrece data' ) ;
3131 this . update = function ( ) {
3232 gl . uniform1iv ( this . location , this . dataReference ) ;
3333 } ;
3434 break ;
35- case PipelineState . TYPE_BOOL :
35+ case ConstantElement . TYPE_BOOL :
3636 PHASER_ASSERT ( ( this . dataReference instanceof Int32Array ) , 'Invalid type for constant refenrece data' ) ;
3737 this . update = function ( ) {
3838 gl . uniform1iv ( this . location , this . dataReference ) ;
3939 } ;
4040 break ;
41- case PipelineState . TYPE_FLOAT_VEC2 :
41+ case ConstantElement . TYPE_FLOAT_VEC2 :
4242 PHASER_ASSERT ( ( this . dataReference instanceof Float32Array ) , 'Invalid type for constant refenrece data' ) ;
4343 this . update = function ( ) {
4444 gl . uniform2fv ( this . location , this . dataReference ) ;
4545 } ;
4646 break ;
47- case PipelineState . TYPE_INT_VEC2 :
47+ case ConstantElement . TYPE_INT_VEC2 :
4848 PHASER_ASSERT ( ( this . dataReference instanceof Int32Array ) , 'Invalid type for constant refenrece data' ) ;
4949 this . update = function ( ) {
5050 gl . uniform2iv ( this . location , this . dataReference ) ;
5151 } ;
5252 break ;
53- case PipelineState . TYPE_BOOL_VEC2 :
53+ case ConstantElement . TYPE_BOOL_VEC2 :
5454 PHASER_ASSERT ( ( this . dataReference instanceof Int32Array ) , 'Invalid type for constant refenrece data' ) ;
5555 this . update = function ( ) {
5656 gl . uniform2iv ( this . location , this . dataReference ) ;
5757 } ;
5858 break ;
59- case PipelineState . TYPE_FLOAT_VEC3 :
59+ case ConstantElement . TYPE_FLOAT_VEC3 :
6060 PHASER_ASSERT ( ( this . dataReference instanceof Float32Array ) , 'Invalid type for constant refenrece data' ) ;
6161 this . update = function ( ) {
6262 gl . uniform3fv ( this . location , this . dataReference ) ;
6363 } ;
6464 break ;
65- case PipelineState . TYPE_INT_VEC3 :
65+ case ConstantElement . TYPE_INT_VEC3 :
6666 PHASER_ASSERT ( ( this . dataReference instanceof Int32Array ) , 'Invalid type for constant refenrece data' ) ;
6767 this . update = function ( ) {
6868 gl . uniform3iv ( this . location , this . dataReference ) ;
6969 } ;
7070 break ;
71- case PipelineState . TYPE_BOOL_VEC3 :
71+ case ConstantElement . TYPE_BOOL_VEC3 :
7272 PHASER_ASSERT ( ( this . dataReference instanceof Int32Array ) , 'Invalid type for constant refenrece data' ) ;
7373 this . update = function ( ) {
7474 gl . uniform3iv ( this . location , this . dataReference ) ;
7575 } ;
7676 break ;
77- case PipelineState . TYPE_FLOAT_VEC4 :
77+ case ConstantElement . TYPE_FLOAT_VEC4 :
7878 PHASER_ASSERT ( ( this . dataReference instanceof Float32Array ) , 'Invalid type for constant refenrece data' ) ;
7979 this . update = function ( ) {
8080 gl . uniform4fv ( this . location , this . dataReference ) ;
8181 } ;
8282 break ;
83- case PipelineState . TYPE_INT_VEC4 :
83+ case ConstantElement . TYPE_INT_VEC4 :
8484 PHASER_ASSERT ( ( this . dataReference instanceof Int32Array ) , 'Invalid type for constant refenrece data' ) ;
8585 this . update = function ( ) {
8686 gl . uniform4iv ( this . location , this . dataReference ) ;
8787 } ;
8888 break ;
89- case PipelineState . TYPE_BOOL_VEC4 :
89+ case ConstantElement . TYPE_BOOL_VEC4 :
9090 PHASER_ASSERT ( ( this . dataReference instanceof Int32Array ) , 'Invalid type for constant refenrece data' ) ;
9191 this . update = function ( ) {
9292 gl . uniform4iv ( this . location , this . dataReference ) ;
9393 } ;
9494 break ;
95- case PipelineState . TYPE_MAT2 :
95+ case ConstantElement . TYPE_MAT2 :
9696 PHASER_ASSERT ( ( this . dataReference instanceof Float32Array ) , 'Invalid type for constant refenrece data' ) ;
9797 this . update = function ( ) {
9898 gl . uniformMatrix2fv ( this . location , this . transpose , this . dataReference ) ;
9999 } ;
100100 break ;
101- case PipelineState . TYPE_MAT3 :
101+ case ConstantElement . TYPE_MAT3 :
102102 PHASER_ASSERT ( ( this . dataReference instanceof Float32Array ) , 'Invalid type for constant refenrece data' ) ;
103103 this . update = function ( ) {
104104 gl . uniformMatrix3fv ( this . location , this . transpose , this . dataReference ) ;
105105 } ;
106106 break ;
107- case PipelineState . TYPE_MAT4 :
107+ case ConstantElement . TYPE_MAT4 :
108108 PHASER_ASSERT ( ( this . dataReference instanceof Float32Array ) , 'Invalid type for constant refenrece data' ) ;
109109 this . update = function ( ) {
110110 gl . uniformMatrix4fv ( this . location , this . transpose , this . dataReference ) ;
111111 } ;
112112 break ;
113- case PipelineState . TYPE_SAMPLER_2D :
113+ case ConstantElement . TYPE_SAMPLER_2D :
114114 PHASER_ASSERT ( ( this . dataReference instanceof Int32Array ) , 'Invalid type for constant refenrece data' ) ;
115115 this . update = function ( ) {
116116 gl . uniform1iv ( this . location , this . dataReference ) ;
117117 } ;
118118 break ;
119- case PipelineState . TYPE_SAMPLER_CUBE :
119+ case ConstantElement . TYPE_SAMPLER_CUBE :
120120 PHASER_ASSERT ( ( this . dataReference instanceof Int32Array ) , 'Invalid type for constant refenrece data' ) ;
121121 this . update = function ( ) {
122122 gl . uniform1iv ( this . location , this . dataReference ) ;
0 commit comments