Add threshold geometry shader, refactor vertex and fragment shaders

This commit is contained in:
Dan Paulat 2023-08-18 00:30:27 -05:00
parent 5e1b1a5ba6
commit 69f93d6faf
9 changed files with 83 additions and 14 deletions

View file

@ -6,11 +6,11 @@ precision mediump float;
uniform sampler2D uTexture;
smooth in vec2 texCoord;
flat in vec4 modulate;
smooth in vec4 color;
layout (location = 0) out vec4 fragColor;
void main()
{
fragColor = texture(uTexture, texCoord) * modulate;
fragColor = texture(uTexture, texCoord) * color;
}