mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 16:36:54 +02:00
Fix keylight color
Was an integer division producing a float
This commit is contained in:
parent
9c5f384080
commit
fff8b99d10
1 changed files with 3 additions and 3 deletions
|
@ -55,9 +55,9 @@ public:
|
||||||
|
|
||||||
glm::vec3 getKeyLightColorVec3() const {
|
glm::vec3 getKeyLightColorVec3() const {
|
||||||
const quint8 MAX_COLOR = 255;
|
const quint8 MAX_COLOR = 255;
|
||||||
glm::vec3 color = { _keyLightColor[RED_INDEX] / MAX_COLOR,
|
glm::vec3 color = { (float)_keyLightColor[RED_INDEX] / (float)MAX_COLOR,
|
||||||
_keyLightColor[GREEN_INDEX] / MAX_COLOR,
|
(float)_keyLightColor[GREEN_INDEX] / (float)MAX_COLOR,
|
||||||
_keyLightColor[BLUE_INDEX] / MAX_COLOR };
|
(float)_keyLightColor[BLUE_INDEX] / (float)MAX_COLOR };
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue