Commit: c1e3041051f44916c896b0527b3a36937753360c
Author: Campbell Barton
Date:   Tue Dec 27 15:30:11 2016 +1100
Branches: master
https://developer.blender.org/rBc1e3041051f44916c896b0527b3a36937753360c

Comments: hints for perspective functions

Note which GL functions these are equivalent to.

===================================================================

M       source/blender/blenlib/intern/math_geom.c

===================================================================

diff --git a/source/blender/blenlib/intern/math_geom.c 
b/source/blender/blenlib/intern/math_geom.c
index 38947e1..46d963e 100644
--- a/source/blender/blenlib/intern/math_geom.c
+++ b/source/blender/blenlib/intern/math_geom.c
@@ -3763,6 +3763,9 @@ void interp_barycentric_tri_v3(float data[3][3], float u, 
float v, float res[3])
 
 /***************************** View & Projection *****************************/
 
+/**
+ * Matches `glOrtho` result.
+ */
 void orthographic_m4(float matrix[4][4], const float left, const float right, 
const float bottom, const float top,
                      const float nearClip, const float farClip)
 {
@@ -3783,6 +3786,9 @@ void orthographic_m4(float matrix[4][4], const float 
left, const float right, co
        matrix[3][2] = -(farClip + nearClip) / Zdelta;
 }
 
+/**
+ * Matches `glFrustum` result.
+ */
 void perspective_m4(float mat[4][4], const float left, const float right, 
const float bottom, const float top,
                     const float nearClip, const float farClip)
 {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to