c103383f6f
* Implement SDF font outlines, drop shadows, and image glyphs * Update 11-fontsdf to showcase the SDF outlines, drop shadows, and image glyphs Co-authored-by: Josh Jensen <josh@everrush.com>
14 lines
335 B
Python
14 lines
335 B
Python
$input a_position, a_color0, a_color1, a_texcoord0, a_texcoord1
|
|
$output v_color0, v_color1, v_texcoord0, v_texcoord1
|
|
|
|
#include "../../common/common.sh"
|
|
|
|
void main()
|
|
{
|
|
gl_Position = mul(u_modelViewProj, vec4(a_position, 0.0, 1.0) );
|
|
v_texcoord0 = a_texcoord0;
|
|
v_texcoord1 = a_texcoord1;
|
|
v_color0 = a_color0;
|
|
v_color1 = a_color1;
|
|
}
|