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
c4d5225aac
gtk2
/
gsk
/
resources
/
glsl
/
es2_common.vs.glsl
7 lines
85 B
Plaintext
Raw
Normal View
History
Unescape
Escape
gsk: Rename uniforms and attributes in shaders Use appropriate names, and annotate the names with the types — 'u' for uniforms, 'a' for attributes. The common preambles for shaders are split from the bodies, so we need some way to distinguish the uniforms and the attributes just from their name.
2016-07-21 16:17:49 +00:00
uniform mat4 uMVP;
gsk: Rework how GLSL shaders are built The GL renderer should build the GLSL shaders using GskShaderBuilder. This allows us to separate the common parts into separate files, and assemble them as necessary, instead of shipping one big shader per type of GL API (GL3, GL legacy, and GLES).
2016-07-03 20:12:22 +00:00
gsk: Rename uniforms and attributes in shaders Use appropriate names, and annotate the names with the types — 'u' for uniforms, 'a' for attributes. The common preambles for shaders are split from the bodies, so we need some way to distinguish the uniforms and the attributes just from their name.
2016-07-21 16:17:49 +00:00
attribute vec2 aPosition;
attribute vec2 aUv;
gsk: Rework how GLSL shaders are built The GL renderer should build the GLSL shaders using GskShaderBuilder. This allows us to separate the common parts into separate files, and assemble them as necessary, instead of shipping one big shader per type of GL API (GL3, GL legacy, and GLES).
2016-07-03 20:12:22 +00:00
varying vec2 vUv;
Reference in New Issue
Copy Permalink