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
precision mediump float; | |
uniform vec4 color; | |
void main() { | |
gl_FragColor = vec4(color.r, color.g, color.b, color.a); | |
} |
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
precision mediump float; | |
attribute vec2 position; | |
attribute vec2 normal; | |
uniform vec2 width; | |
void main(void) { | |
gl_Position = vec4(width * normal, 0, 0) + vec4(position,0,1); | |
} | |