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>2018-11-19 23:32:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-19 23:38:20 +0300
commit3c8c9760865d14c8dffa3a4cd091e4027b1501e3 (patch)
tree50639787a78d9bc592d8235c14655bc535ca0349 /doc/python_api/examples/gpu.3.py
parent5f21030a81fa306f807be5bee8bb1df8dd93a98e (diff)
Cleanup: gpu docs
Diffstat (limited to 'doc/python_api/examples/gpu.3.py')
-rw-r--r--doc/python_api/examples/gpu.3.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/python_api/examples/gpu.3.py b/doc/python_api/examples/gpu.3.py
index 30f340c30ff..4bee9acebe3 100644
--- a/doc/python_api/examples/gpu.3.py
+++ b/doc/python_api/examples/gpu.3.py
@@ -32,7 +32,8 @@ fragment_shader = '''
coords = [(1, 1, 1), (2, 0, 0), (-2, -1, 3)]
shader = gpu.types.GPUShader(vertex_shader, fragment_shader)
-batch = batch_for_shader(shader, 'TRIS', {"position" : coords})
+batch = batch_for_shader(shader, 'TRIS', {"position": coords})
+
def draw():
shader.bind()
@@ -41,4 +42,5 @@ def draw():
shader.uniform_float("brightness", 0.5)
batch.draw(shader)
-bpy.types.SpaceView3D.draw_handler_add(draw, (), 'WINDOW', 'POST_VIEW') \ No newline at end of file
+
+bpy.types.SpaceView3D.draw_handler_add(draw, (), 'WINDOW', 'POST_VIEW')