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:
authorCampbell Barton <ideasman42@gmail.com>2019-05-15 07:16:35 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-15 07:16:35 +0300
commit5005210f407b8f3426c0137a70443b2e53a02be1 (patch)
tree0fa87ece1aa14715e896dc4cad26cce8b42aaade /source/blender/gpu/GPU_matrix.h
parentd09289ff7a8e8fe6d4da6b46dd153033d7cfd426 (diff)
GPU: Add a matrix unproject function that takes an inverted matrix
This is normally already calculated so add a version that takes the inverted matrix.
Diffstat (limited to 'source/blender/gpu/GPU_matrix.h')
-rw-r--r--source/blender/gpu/GPU_matrix.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_matrix.h b/source/blender/gpu/GPU_matrix.h
index 67fb2bb2bd4..6f7d25dafa7 100644
--- a/source/blender/gpu/GPU_matrix.h
+++ b/source/blender/gpu/GPU_matrix.h
@@ -106,6 +106,11 @@ bool GPU_matrix_unproject(const float win[3],
const float proj[4][4],
const int view[4],
float world[3]);
+void GPU_matrix_unproject_model_inverted(const float win[3],
+ const float model_inverted[4][4],
+ const float proj[4][4],
+ const int view[4],
+ float world[3]);
/* 2D Projection Matrix */