diff options
author | iurii plugatarov <[email protected]> | 2024-08-16 20:51:24 +0200 |
---|---|---|
committer | iurii plugatarov <[email protected]> | 2024-08-16 20:51:24 +0200 |
commit | fc3e2bed46c42a9af6a9e562b6609608e09e9850 (patch) | |
tree | 2a33d53214c71898014a8b6d135870aa82b494d3 /res/shaders/triangle.fs | |
parent | 586369b63cdede5fa09f5f9ed73abde6c8264425 (diff) | |
download | funhalla-fc3e2bed46c42a9af6a9e562b6609608e09e9850.tar.gz |
shaders and textures
Diffstat (limited to 'res/shaders/triangle.fs')
-rw-r--r-- | res/shaders/triangle.fs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/res/shaders/triangle.fs b/res/shaders/triangle.fs new file mode 100644 index 0000000..70a5f6d --- /dev/null +++ b/res/shaders/triangle.fs @@ -0,0 +1,14 @@ +#version 330 core + +out vec4 FragColor; + +in vec3 our_color; +in vec2 TexCoord; + +uniform sampler2D texture1; +uniform sampler2D texture2; + +void main() +{ + FragColor = mix(texture(texture1, TexCoord), texture(texture2, TexCoord), 0.2); +} |