Add geo line shaders

This commit is contained in:
Dan Paulat 2022-09-24 16:02:15 -05:00
parent bf6b3e3601
commit bee167764a
4 changed files with 60 additions and 1 deletions

16
scwx-qt/gl/texture2d.frag Normal file
View file

@ -0,0 +1,16 @@
#version 330 core
// Lower the default precision to medium
precision mediump float;
uniform sampler2D uTexture;
flat in vec2 texCoord;
flat in vec4 modulate;
layout (location = 0) out vec4 fragColor;
void main()
{
fragColor = texture(uTexture, texCoord) * modulate;
}