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
33aa61ef2c
gtk2
/
gsk
/
resources
/
glsl
/
blit.fs.glsl
6 lines
93 B
Plaintext
Raw
Normal View
History
Unescape
Escape
gsk: Add 'blit' program For the root node we do not need to use blending, as it does not have any backdrop to blend into. We can use a simpler 'blit' program that only takes the content of the source and fills the texture quad with it.
2016-07-04 12:55:00 +00:00
void main() {
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
vec4 diffuse = Texture(uSource, vUv);
gsk: Add 'blit' program For the root node we do not need to use blending, as it does not have any backdrop to blend into. We can use a simpler 'blit' program that only takes the content of the source and fills the texture quad with it.
2016-07-04 12:55:00 +00:00
Rework the GL renderer
2017-11-03 12:09:02 +00:00
setOutputColor(diffuse * uAlpha);
gsk: Add 'blit' program For the root node we do not need to use blending, as it does not have any backdrop to blend into. We can use a simpler 'blit' program that only takes the content of the source and fills the texture quad with it.
2016-07-04 12:55:00 +00:00
}
Reference in New Issue
Copy Permalink