From 4fa4245464380cd72603377150d17f71ef3b4ab6 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Wed, 14 Oct 2020 11:16:41 -0400 Subject: PyDocs: GPU Module: Examples: convert all gl_FragColor variables to FragColor Based on D6425 by @robbott Differential Revision: https://developer.blender.org/D6425 --- doc/python_api/examples/gpu.10.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/python_api/examples/gpu.10.py') 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); } ''' -- cgit v1.2.3