mortennobel/KickJS — Issue #14: Change material uniform usage
Author: mortennobel
Created: 2012-02-10 11:26:19+00:00
State: open

Currently material uniforms have the syntax
```
{
mainColor:{
value:[i/5,0.0,0.9,0.5],
type:KICK.core.Constants.GL_FLOAT_VEC4
},
mainTexture:{
value:engine.project.load(engine.project.ENGINE_TEXTURE_WHITE),
type:KICK.core.Constants.GL_SAMPLER_2D
}
}
```
That should be simplified to:
```
{
mainColor: [i/5,0.0,0.9,0.5],
mainTexture: engine.project.load(engine.project.ENGINE_TEXTURE_WHITE)
}
```
since there is really no need for type information.