[Bf-blender-cvs] [fafb901baaa] blender-v3.3-release: PyDoc: fix 2D builtin shaders documentation

Germano Cavalcante noreply at git.blender.org
Thu Jul 28 19:36:37 CEST 2022


Commit: fafb901baaab8dc9a0bbf8c8060e4bd0aa47963e
Author: Germano Cavalcante
Date:   Thu Jul 28 14:34:42 2022 -0300
Branches: blender-v3.3-release
https://developer.blender.org/rBfafb901baaab8dc9a0bbf8c8060e4bd0aa47963e

PyDoc: fix 2D builtin shaders documentation

2D shaders require the `vec2` attribute for "pos" (not `vec3`)

===================================================================

M	source/blender/python/gpu/gpu_py_shader.c

===================================================================

diff --git a/source/blender/python/gpu/gpu_py_shader.c b/source/blender/python/gpu/gpu_py_shader.c
index 101b9f8e4c6..e3f789aa58d 100644
--- a/source/blender/python/gpu/gpu_py_shader.c
+++ b/source/blender/python/gpu/gpu_py_shader.c
@@ -31,16 +31,16 @@
 
 #define PYDOC_BUILTIN_SHADER_DESCRIPTION \
   "``2D_FLAT_COLOR``\n" \
-  "   :Attributes: vec3 pos, vec4 color\n" \
+  "   :Attributes: vec2 pos, vec4 color\n" \
   "   :Uniforms: none\n" \
   "``2D_IMAGE``\n" \
-  "   :Attributes: vec3 pos, vec2 texCoord\n" \
+  "   :Attributes: vec2 pos, vec2 texCoord\n" \
   "   :Uniforms: sampler2D image\n" \
   "``2D_SMOOTH_COLOR``\n" \
-  "   :Attributes: vec3 pos, vec4 color\n" \
+  "   :Attributes: vec2 pos, vec4 color\n" \
   "   :Uniforms: none\n" \
   "``2D_UNIFORM_COLOR``\n" \
-  "   :Attributes: vec3 pos\n" \
+  "   :Attributes: vec2 pos\n" \
   "   :Uniforms: vec4 color\n" \
   "``3D_FLAT_COLOR``\n" \
   "   :Attributes: vec3 pos, vec4 color\n" \



More information about the Bf-blender-cvs mailing list