erebus
annotate liberebus/src/color.h @ 23:56d504cc555a
- debugging scale factor for render size
- fixed un-normalized normals after transforms in the SceneNode
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 29 May 2014 07:47:52 +0300 |
parents | 474a0244f57d |
children | bab25c0ce337 |
rev | line source |
---|---|
nuclear@2 | 1 #ifndef COLOR_H_ |
nuclear@2 | 2 #define COLOR_H_ |
nuclear@2 | 3 |
nuclear@2 | 4 #include "vmath/vector.h" |
nuclear@2 | 5 |
nuclear@5 | 6 typedef Vector4 Color; |
nuclear@2 | 7 |
nuclear@2 | 8 inline float color_luminance(const Color &c) { return c[0] * 0.2126 + c[1] * 0.7152 + c[2] * 0.0722; } |
nuclear@2 | 9 |
nuclear@2 | 10 #endif // COLOR_H_ |