summaryrefslogtreecommitdiff
path: root/txtgameengine/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'txtgameengine/shaders')
-rw-r--r--txtgameengine/shaders/__init__.py2
-rw-r--r--txtgameengine/shaders/integrated.py6
2 files changed, 7 insertions, 1 deletions
diff --git a/txtgameengine/shaders/__init__.py b/txtgameengine/shaders/__init__.py
index 64b0cc8..989ba98 100644
--- a/txtgameengine/shaders/__init__.py
+++ b/txtgameengine/shaders/__init__.py
@@ -1,2 +1,2 @@
from .shader import Shader
-from .integrated import TextureShader, BasicShader
+from .integrated import TextureShader, BasicShader, FontShader
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'