Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Carlisle <carlisle.b3d@gmail.com>2020-10-14 18:16:41 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2020-10-14 18:18:36 +0300
commit4fa4245464380cd72603377150d17f71ef3b4ab6 (patch)
tree63041dae7deeb7042e2e6a94d1e2790251937121 /doc/python_api/examples/gpu.2.py
parent50d78116cd3d75167168786688e978805923c091 (diff)
PyDocs: GPU Module: Examples: convert all gl_FragColor variables to FragColor
Based on D6425 by @robbott Differential Revision: https://developer.blender.org/D6425
Diffstat (limited to 'doc/python_api/examples/gpu.2.py')
-rw-r--r--doc/python_api/examples/gpu.2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/python_api/examples/gpu.2.py b/doc/python_api/examples/gpu.2.py
index 4bee9acebe3..565ec5d5d0c 100644
--- a/doc/python_api/examples/gpu.2.py
+++ b/doc/python_api/examples/gpu.2.py
@@ -23,10 +23,11 @@ fragment_shader = '''
uniform float brightness;
in vec3 pos;
+ out vec4 FragColor;
void main()
{
- gl_FragColor = vec4(pos * brightness, 1.0);
+ FragColor = vec4(pos * brightness, 1.0);
}
'''