- Add support for linearly desaturating images via r_greyscale

- Use correct luminance values for rendering textures
Patch submitted by Forrest Voight.
This commit is contained in:
Thilo Schulz committed 2011-02-04 16:04:37 +00:00
1 parent 13836e5f4a
commit e66abb3237
6 files changed
+61 -8

No files matched your search

+3
View File
@@ -1307,4 +1307,7 @@ typedef enum _flag_status {
#define CDCHKSUM_LEN 2
#define LERP( a, b, w ) ( ( a ) * ( 1.0f - ( w ) ) + ( b ) * ( w ) )
#define LUMA( red, green, blue ) ( 0.2126f * ( red ) + 0.7152f * ( green ) + 0.0722f * ( blue ) )
#endif // __Q_SHARED_H