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-29 06:51:10 +00:00
Code
Issues
Projects
Releases
Wiki
Activity
3176ae7e51
gtk
/
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