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
f354a7787a
gtk2
/
gsk
/
resources
/
glsl
/
blit.fs.glsl
6 lines
95 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() {
gl renderer: Rework program creation Make sure all uniform names have to match between the shader names and the _location integers we save in every Program struct.
2017-11-30 17:47:55 +00:00
vec4 diffuse = Texture(u_source, 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
gl renderer: Rework program creation Make sure all uniform names have to match between the shader names and the _location integers we save in every Program struct.
2017-11-30 17:47:55 +00:00
setOutputColor(diffuse * u_alpha);
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