This website requires JavaScript.
ReeceSX
Explore
Aurora
Register
Sign In
AuroraMiddleware
/
gtk2
Watch
1
Star
0
Fork
0
You've already forked gtk2
forked from
AuroraMiddleware/gtk
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
c44e693b26
gtk2
/
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