GRIM: Color is RGBA, not RBGA.
This commit is contained in:
parent
1f5647c265
commit
1461cde798
2 changed files with 4 additions and 4 deletions
|
@ -540,8 +540,8 @@ void GfxOpenGL::setupLight(Scene::Light *light, int lightId) {
|
|||
|
||||
float intensity = light->_intensity / 1.3f;
|
||||
lightColor[0] = ((float)light->_color.getRed() / 15.0f) * intensity;
|
||||
lightColor[1] = ((float)light->_color.getBlue() / 15.0f) * intensity;
|
||||
lightColor[2] = ((float)light->_color.getGreen() / 15.0f) * intensity;
|
||||
lightColor[1] = ((float)light->_color.getGreen() / 15.0f) * intensity;
|
||||
lightColor[2] = ((float)light->_color.getBlue() / 15.0f) * intensity;
|
||||
|
||||
if (light->_type == "omni") {
|
||||
lightPos[0] = light->_pos.x();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue