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:
authorJacques Lucke <mail@jlucke.com>2018-11-12 19:53:45 +0300
committerJacques Lucke <mail@jlucke.com>2018-11-12 19:54:51 +0300
commit15a5cc6ca0b93a923e1bfd25850d3d645aaa43b5 (patch)
tree588817835fe92f69d1445d2dfddb6cc66b26e4e4 /doc/python_api/examples/gpu.8.py
parentc34c688b47521226503052616e8c1961b4d81acf (diff)
Py API Docs: another use case for offscreen rendering
Diffstat (limited to 'doc/python_api/examples/gpu.8.py')
-rw-r--r--doc/python_api/examples/gpu.8.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/python_api/examples/gpu.8.py b/doc/python_api/examples/gpu.8.py
index 187276d61f5..7e41164fc7e 100644
--- a/doc/python_api/examples/gpu.8.py
+++ b/doc/python_api/examples/gpu.8.py
@@ -23,6 +23,7 @@ offscreen.bind()
try:
bgl.glClear(bgl.GL_COLOR_BUFFER_BIT)
with gpu.matrix.push_pop():
+ # reset matrices -> use normalized device coordinates [-1, 1]
gpu.matrix.load_matrix(Matrix.Identity(4))
gpu.matrix.load_projection_matrix(Matrix.Identity(4))