aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index 75e27fd..fddfa9d 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -54,6 +54,8 @@
#define PRINT_VECTOR2(v) printf("%f %f\n", v.x, v.y)
#define PRINT_VECTOR3(v) printf("%f %f %f\n", v.x, v.y, v.z)
+#define GRAY_VALUE(color) ((float)(color.r + color.g + color.b) / 3.0)
+
#define RANDOM_DIRECTION_UNITS 4096
// Typedef hackery.