]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image.h
default effectinfo velocitymultiplier to 0 in nexuiz mode
[xonotic/darkplaces.git] / image.h
diff --git a/image.h b/image.h
index 10d190dd902d40b9ca24c45b642a0d383f4d9a73..60fbcce681c1aa93311efc3d4e3e1dd6f61de373 100644 (file)
--- a/image.h
+++ b/image.h
@@ -49,6 +49,8 @@ void Image_HeightmapToNormalmap_BGRA(const unsigned char *inpixels, unsigned cha
 void Image_FixTransparentPixels_f(void);
 extern cvar_t r_fixtrans_auto;
 
+#define Image_LinearFloatFromsRGB(c) (((c) < 11) ? (c) * 0.000302341331f : (float)pow(((c)*(1.0f/256.0f) + 0.055f)*(1.0f/1.0555f), 2.4f))
+
 void Image_MakeLinearColorsFromsRGB(unsigned char *pout, const unsigned char *pin, int numpixels);
 
 #endif