bgfx/examples/common/font/vs_font_distance_field_outline.sc
Josh Jensen c103383f6f
Add SDF font outlines, drop shadows, and image glyphs (#2325)
* 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>
2020-12-13 17:02:36 -08:00

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;
}