diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-19 23:32:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-19 23:38:20 +0300 |
commit | 3c8c9760865d14c8dffa3a4cd091e4027b1501e3 (patch) | |
tree | 50639787a78d9bc592d8235c14655bc535ca0349 /doc/python_api/examples/gpu.shader.py | |
parent | 5f21030a81fa306f807be5bee8bb1df8dd93a98e (diff) |
Cleanup: gpu docs
Diffstat (limited to 'doc/python_api/examples/gpu.shader.py')
-rw-r--r-- | doc/python_api/examples/gpu.shader.py | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/doc/python_api/examples/gpu.shader.py b/doc/python_api/examples/gpu.shader.py index 7ffd3fe85c8..3c72e70378c 100644 --- a/doc/python_api/examples/gpu.shader.py +++ b/doc/python_api/examples/gpu.shader.py @@ -4,32 +4,33 @@ Built-in shaders All built-in shaders have the ``mat4 ModelViewProjectionMatrix`` uniform. The value of it can only be modified using the :class:`gpu.matrix` module. -""" 2D_UNIFORM_COLOR: - attributes: vec3 pos - uniforms: vec4 color + attributes: vec3 pos + uniforms: vec4 color 2D_FLAT_COLOR: - attributes: vec3 pos, vec4 color - uniforms: - + attributes: vec3 pos, vec4 color + uniforms: - 2D_SMOOTH_COLOR: - attributes: vec3 pos, vec4 color - uniforms: - + attributes: vec3 pos, vec4 color + uniforms: - 2D_IMAGE: - attributes: vec3 pos, vec2 texCoord - uniforms: sampler2D image + attributes: vec3 pos, vec2 texCoord + uniforms: sampler2D image 3D_UNIFORM_COLOR: - attributes: vec3 pos - uniforms: vec4 color + attributes: vec3 pos + uniforms: vec4 color 3D_FLAT_COLOR: - attributes: vec3 pos, vec4 color - uniforms: - + attributes: vec3 pos, vec4 color + uniforms: - 3D_SMOOTH_COLOR: - attributes: vec3 pos, vec4 color - uniforms: - + attributes: vec3 pos, vec4 color + uniforms: - + +""" |