From fafb901baaab8dc9a0bbf8c8060e4bd0aa47963e Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Thu, 28 Jul 2022 14:34:42 -0300 Subject: [PATCH] PyDoc: fix 2D builtin shaders documentation 2D shaders require the `vec2` attribute for "pos" (not `vec3`) --- source/blender/python/gpu/gpu_py_shader.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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" \