diff options
author | Andrey Nazarov <skuller@skuller.net> | 2012-12-07 20:11:07 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2012-12-07 20:11:07 +0400 |
commit | ee80739f4de94d25860bff5b1c27c13eca84f0cb (patch) | |
tree | 77f93870a2bc3f07465bd375b455b3e506d581ef /inc | |
parent | 75540aa539866684f1056a2b6a1285a05a053f35 (diff) |
Restore GL-style alias model shading.
Diffstat (limited to 'inc')
-rw-r--r-- | inc/refresh/images.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/refresh/images.h b/inc/refresh/images.h index 87d7b58..9715aa4 100644 --- a/inc/refresh/images.h +++ b/inc/refresh/images.h @@ -47,6 +47,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #define MIPSIZE(c) (c) #endif +#define LUMINANCE(r, g, b) ((r) * 0.2126f + (g) * 0.7152f + (b) * 0.0722f) + // absolute limit for OpenGL renderer #define MAX_TEXTURE_SIZE 2048 |