From ec934bf2f0f3536c1b4d31b4ca002f6f38ada9fe Mon Sep 17 00:00:00 2001 From: rom Date: Sat, 24 Apr 2021 03:19:22 +0200 Subject: font rendering --- txtgameengine/shaders/integrated.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'txtgameengine/shaders/integrated.py') diff --git a/txtgameengine/shaders/integrated.py b/txtgameengine/shaders/integrated.py index d9e5ae5..180225a 100644 --- a/txtgameengine/shaders/integrated.py +++ b/txtgameengine/shaders/integrated.py @@ -14,3 +14,9 @@ class TextureShader(Shader): UNIFORMS = dict(textureSampler="textureSampler") VERTEX_PATH = shader_base_path / 'texture/vertex.glsl' FRAGMENT_PATH = shader_base_path / 'texture/fragment.glsl' + + +class FontShader(Shader): + UNIFORMS = dict(textureSampler="textureSampler") + VERTEX_PATH = shader_base_path / 'font/vertex.glsl' + FRAGMENT_PATH = shader_base_path / 'font/fragment.glsl' -- cgit