Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2016-10-24 06:37:53 +0300
committerMike Erwin <significant.bit@gmail.com>2016-10-24 06:37:53 +0300
commit1abdb0c2eea513de3803b9ef8a0211d40dec30d1 (patch)
tree584a8de07c6ca1bc59f1bf1a053922ce10b9abbc /source/blender/gpu/GPU_matrix.h
parent2cb45c993886c16b5b8e0e3187e1db5b92032d4f (diff)
OpenGL: add NormalMatrix & inverse to new API
Part of T49450
Diffstat (limited to 'source/blender/gpu/GPU_matrix.h')
-rw-r--r--source/blender/gpu/GPU_matrix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_matrix.h b/source/blender/gpu/GPU_matrix.h
index f3118495239..4390b62379e 100644
--- a/source/blender/gpu/GPU_matrix.h
+++ b/source/blender/gpu/GPU_matrix.h
@@ -126,6 +126,9 @@ const float *gpuGetModelViewMatrix3D(float m[4][4]);
const float *gpuGetProjectionMatrix3D(float m[4][4]);
const float *gpuGetModelViewProjectionMatrix3D(float m[4][4]);
+const float *gpuGetNormalMatrix(float m[3][3]);
+const float *gpuGetNormalMatrixInverse(float m[3][3]);
+
#if SUPPORT_LEGACY_MATRIX
/* copy top matrix from each legacy stack into new fresh stack */