]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - matrixlib.h
implemented r_glsl_water cvar (refraction and reflection rendering)
[xonotic/darkplaces.git] / matrixlib.h
index f510f3d9d567975b99ad0c624f89a0383d334871..480dec150105651468aa32e27fb51ee11c35757a 100644 (file)
@@ -42,6 +42,9 @@ void Matrix4x4_Invert_Simple (matrix4x4_t *out, const matrix4x4_t *in1);
 // creates a matrix that does the same rotation and translation as the matrix
 // provided, but no uniform scaling, does not support scale3 matrices
 void Matrix4x4_Normalize (matrix4x4_t *out, matrix4x4_t *in1);
+// modifies a matrix to have all vectors and origin reflected across the plane
+// to the opposite side (at least if axisscale is -2)
+void Matrix4x4_Reflect (matrix4x4_t *out, double normalx, double normaly, double normalz, double dist, double axisscale);
 
 // creates an identity matrix
 // (a matrix which does nothing)