diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2020-10-14 18:16:41 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2020-10-14 18:18:36 +0300 |
commit | 4fa4245464380cd72603377150d17f71ef3b4ab6 (patch) | |
tree | 63041dae7deeb7042e2e6a94d1e2790251937121 /doc | |
parent | 50d78116cd3d75167168786688e978805923c091 (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')
-rw-r--r-- | doc/python_api/examples/gpu.10.py | 3 | ||||
-rw-r--r-- | doc/python_api/examples/gpu.2.py | 3 | ||||
-rw-r--r-- | doc/python_api/examples/gpu.7.py | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/doc/python_api/examples/gpu.10.py b/doc/python_api/examples/gpu.10.py index 2f255b7127d..8e354dd09a8 100644 --- a/doc/python_api/examples/gpu.10.py +++ b/doc/python_api/examples/gpu.10.py @@ -33,11 +33,12 @@ fragment_shader = ''' uniform float u_Scale; in float v_ArcLength; + out vec4 FragColor; void main() { if (step(sin(v_ArcLength * u_Scale), 0.5) == 1) discard; - gl_FragColor = vec4(1.0); + FragColor = vec4(1.0); } ''' 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); } ''' diff --git a/doc/python_api/examples/gpu.7.py b/doc/python_api/examples/gpu.7.py index d6055898807..80cda45e690 100644 --- a/doc/python_api/examples/gpu.7.py +++ b/doc/python_api/examples/gpu.7.py @@ -56,10 +56,11 @@ fragment_shader = ''' uniform sampler2D image; in vec2 uvInterp; + out vec4 FragColor; void main() { - gl_FragColor = texture(image, uvInterp); + FragColor = texture(image, uvInterp); } ''' |