diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/examples/gpu.1.py | 1 | ||||
-rw-r--r-- | doc/python_api/examples/gpu.10.py | 1 | ||||
-rw-r--r-- | doc/python_api/examples/gpu.2.py | 1 | ||||
-rw-r--r-- | doc/python_api/examples/gpu.3.py | 1 | ||||
-rw-r--r-- | doc/python_api/examples/gpu.5.py | 1 | ||||
-rw-r--r-- | doc/python_api/examples/gpu.6.py | 1 | ||||
-rw-r--r-- | doc/python_api/examples/gpu.7.py | 1 |
7 files changed, 0 insertions, 7 deletions
diff --git a/doc/python_api/examples/gpu.1.py b/doc/python_api/examples/gpu.1.py index a014e69c2d2..c44e79a77aa 100644 --- a/doc/python_api/examples/gpu.1.py +++ b/doc/python_api/examples/gpu.1.py @@ -134,7 +134,6 @@ batch = batch_for_shader(shader, 'LINES', {"pos": coords}) def draw(): - shader.bind() shader.uniform_float("color", (1, 1, 0, 1)) batch.draw(shader) diff --git a/doc/python_api/examples/gpu.10.py b/doc/python_api/examples/gpu.10.py index b47ff732e2b..6c438bd396e 100644 --- a/doc/python_api/examples/gpu.10.py +++ b/doc/python_api/examples/gpu.10.py @@ -58,7 +58,6 @@ batch = batch_for_shader( def draw(): - shader.bind() matrix = bpy.context.region_data.perspective_matrix shader.uniform_float("u_ViewProjectionMatrix", matrix) shader.uniform_float("u_Scale", 10) diff --git a/doc/python_api/examples/gpu.2.py b/doc/python_api/examples/gpu.2.py index 2a46e833752..e308ce7f78e 100644 --- a/doc/python_api/examples/gpu.2.py +++ b/doc/python_api/examples/gpu.2.py @@ -41,7 +41,6 @@ batch = batch_for_shader(shader, 'TRIS', {"position": coords}) def draw(): - shader.bind() matrix = bpy.context.region_data.perspective_matrix shader.uniform_float("viewProjectionMatrix", matrix) shader.uniform_float("brightness", 0.5) diff --git a/doc/python_api/examples/gpu.3.py b/doc/python_api/examples/gpu.3.py index 0c86b52bcf5..9e8f762d9c9 100644 --- a/doc/python_api/examples/gpu.3.py +++ b/doc/python_api/examples/gpu.3.py @@ -22,7 +22,6 @@ batch = batch_for_shader(shader, 'LINES', {"pos": coords}, indices=indices) def draw(): - shader.bind() shader.uniform_float("color", (1, 0, 0, 1)) batch.draw(shader) diff --git a/doc/python_api/examples/gpu.5.py b/doc/python_api/examples/gpu.5.py index 2edde46a364..983372706c1 100644 --- a/doc/python_api/examples/gpu.5.py +++ b/doc/python_api/examples/gpu.5.py @@ -18,7 +18,6 @@ batch = batch_for_shader(shader, 'TRIS', {"pos": vertices}, indices=indices) def draw(): - shader.bind() shader.uniform_float("color", (0, 0.5, 0.5, 1.0)) batch.draw(shader) diff --git a/doc/python_api/examples/gpu.6.py b/doc/python_api/examples/gpu.6.py index 5576b2d0bfe..96decf571ee 100644 --- a/doc/python_api/examples/gpu.6.py +++ b/doc/python_api/examples/gpu.6.py @@ -56,7 +56,6 @@ batch = batch_for_shader( def draw(): - shader.bind() shader.uniform_sampler("image", texture) batch.draw(shader) diff --git a/doc/python_api/examples/gpu.7.py b/doc/python_api/examples/gpu.7.py index e3bfbd14e34..5d25b42728d 100644 --- a/doc/python_api/examples/gpu.7.py +++ b/doc/python_api/examples/gpu.7.py @@ -76,7 +76,6 @@ batch = batch_for_shader( def draw(): - shader.bind() shader.uniform_float("modelMatrix", Matrix.Translation((1, 2, 3)) @ Matrix.Scale(3, 4)) shader.uniform_float("viewProjectionMatrix", bpy.context.region_data.perspective_matrix) shader.uniform_sampler("image", offscreen.texture_color) |