This website requires JavaScript.
ReeceSX
Explore
Aurora
Register
Sign In
AuroraMiddleware
/
gtk
Watch
1
Star
0
Fork
1
You've already forked gtk
mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced
2024-12-27 06:00:22 +00:00
Code
Issues
Projects
Releases
Wiki
Activity
200a2f5c71
gtk
/
demos
/
gtk-demo
/
glarea-gles.vs.glsl
8 lines
93 B
Plaintext
Raw
Normal View
History
Unescape
Escape
demo: Add GLES support to the GtkGLArea demo We need new shaders, and we need to select the correct shader when building the program we use to render the triangle.
2016-04-23 12:46:05 +00:00
attribute vec4 position;
demo: Move the GLSL shaders to resources It's easier to use them or modify them as separate files, instead of inlined inside the C source. https://bugzilla.gnome.org/show_bug.cgi?id=741946
2015-02-09 16:27:44 +00:00
uniform mat4 mvp;
void main() {
gl_Position = mvp * position;
}
Reference in New Issue
Copy Permalink