diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-07-28 20:34:42 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-07-28 20:36:07 +0300 |
commit | fafb901baaab8dc9a0bbf8c8060e4bd0aa47963e (patch) | |
tree | 694dbf60cd610a2762fadbf0442b9c93493479eb | |
parent | ea23e937cebdb85f096a9764749bfedbd31a45f6 (diff) |
PyDoc: fix 2D builtin shaders documentation
2D shaders require the `vec2` attribute for "pos" (not `vec3`)
-rw-r--r-- | source/blender/python/gpu/gpu_py_shader.c | 8 |
1 files 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" \ |