diff options
author | Geenz <geenz@geenzo.com> | 2019-03-29 08:11:56 -0700 |
---|---|---|
committer | Geenz <geenz@geenzo.com> | 2019-03-29 08:11:56 -0700 |
commit | 57d88a8a98ef8663b9064b12143beb4068e58f86 (patch) | |
tree | 8b37cf56aa5e6d0882caee2bcd79b22c90f5350b /indra/newview/llvovolume.h | |
parent | 3fa8b844c39311a2e4e319a8d4f7ab2c848ae140 (diff) |
Gamma correction pass 2:
Make sure lights are in the correct color space.
Bonus: cache the sRGB color in setLightColor on point and spot lights. Frees up a pow and some multiplies on the CPU every frame.
Diffstat (limited to 'indra/newview/llvovolume.h')
-rw-r--r-- | indra/newview/llvovolume.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.h b/indra/newview/llvovolume.h index 0882fc095d..aeabcda911 100644 --- a/indra/newview/llvovolume.h +++ b/indra/newview/llvovolume.h @@ -251,6 +251,7 @@ public: BOOL getIsLight() const; LLColor3 getLightBaseColor() const; // not scaled by intensity LLColor3 getLightColor() const; // scaled by intensity + LLColor3 getLightsRGBColor() const; // Used to get the (cached) light color in sRGB color space. Also scaled by intensity. LLUUID getLightTextureID() const; bool isLightSpotlight() const; LLVector3 getSpotLightParams() const; |