Last active
March 8, 2020 10:50
-
-
Save anirul/11d84ba8e8a05568d35550a18870b78c to your computer and use it in GitHub Desktop.
Fragment on how to draw a texture to surface.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 430 core | |
layout(location = 0) out vec4 frag_color; | |
in vec3 out_color; | |
in vec2 out_texture_coordinate; | |
uniform sampler2D texture1; | |
void main() | |
{ | |
frag_color = mix( | |
texture(texture1, out_texture_coordinate), | |
vec4(out_color, 1), | |
0.3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment