Open DanielGavin opened 9 months ago
fragment_source := "#version 330\n" + "uniform vec4 color;" + "uniform sampler2D sampler;" + "in vec2 uv0;" + "layout(location = 0) out vec4 frag_color;" + "void main(){" + " vec4 texColor = texture2D(sampler, uv0.xy);" + " frag_color = color texColor;" +// " frag_color = color vec4(1, 0, 0, 1);" + "}"
fragment_source := "#version 330\n" + "uniform vec4 color;" + "uniform sampler2D sampler;" + "in vec2 uv0;" + "layout(location = 0) out vec4 frag_color;" + "void main(){" + " vec4 texColor = texture2D(sampler, uv0.xy);" + " frag_color = color texColor;" +// " frag_color = color vec4(1, 0, 0, 1);" + "}"