PyAPI: remove deprecated 2D_/3D_ prefix for built-in shader names

Names passed to gpu.shader.from_builtin()
no longer skip the 2D_/3D_ prefix.
This commit is contained in:
2023-05-23 15:51:54 +10:00
parent fd68f977e0
commit 9a8fd2f1dd
6 changed files with 7 additions and 25 deletions

View File

@@ -17,7 +17,7 @@ indices = (
(4, 5), (4, 6), (5, 7), (6, 7),
(0, 4), (1, 5), (2, 6), (3, 7))
shader = gpu.shader.from_builtin('3D_UNIFORM_COLOR')
shader = gpu.shader.from_builtin('UNIFORM_COLOR')
batch = batch_for_shader(shader, 'LINES', {"pos": coords}, indices=indices)