This commit is contained in:
2023-03-21 16:05:05 +00:00
parent 9570becd1b
commit 4519a6fbc7
2 changed files with 17 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#version 450 core
in vec2 vTexPos;
out vec4 fColor;
layout(binding = 0) uniform sampler2D tex;
void main()
{
vec4 incol = texture(tex, vTexPos);
fColor = vec4( incol.xyz / incol.w, 1);
}