Fixed OpenGL examples for MacOS (#1634)

This commit is contained in:
Jason Villanueva 2021-06-05 05:34:53 -07:00 committed by GitHub
commit 7651119b5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,10 +153,10 @@ class InlineFullScreenQuad(Scene):
// and the Saturation to the radius
color = hsb2rgb(vec3((angle/TWO_PI)+0.5,radius,1.0));
gl_FragColor = vec4(color,1.0);
fragColor = vec4(color,1.0);
}
""",
output_color_variable="gl_FragColor",
output_color_variable="fragColor",
)
surface.shader.set_uniform("u_resolution", (854.0, 480.0))
shader_time = 0