diff options
author | rom <romangraef@gmail.com> | 2021-04-24 00:36:05 +0200 |
---|---|---|
committer | rom <romangraef@gmail.com> | 2021-04-24 00:36:05 +0200 |
commit | fd73d0ad2c3b54850baf3c467954c92bd40ed010 (patch) | |
tree | ed1be11f8aacaf86d9de747ee2ba8170907cabf8 /txtgameengine/shaders/integrated.py | |
parent | c75fefeb134e4c99778eada20c89e2245e30b7f7 (diff) | |
download | txtgameengine-fd73d0ad2c3b54850baf3c467954c92bd40ed010.tar.gz txtgameengine-fd73d0ad2c3b54850baf3c467954c92bd40ed010.tar.bz2 txtgameengine-fd73d0ad2c3b54850baf3c467954c92bd40ed010.zip |
shader support
Diffstat (limited to 'txtgameengine/shaders/integrated.py')
-rw-r--r-- | txtgameengine/shaders/integrated.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/txtgameengine/shaders/integrated.py b/txtgameengine/shaders/integrated.py new file mode 100644 index 0000000..dfa1033 --- /dev/null +++ b/txtgameengine/shaders/integrated.py @@ -0,0 +1,16 @@ +from .shader import Shader +from ..app import base_path + +shader_base_path = base_path / 'builtin_shaders' + + +class BasicShader(Shader): + UNIFORMS = dict() + VERTEX_PATH = shader_base_path / 'basic/vertex.glsl' + FRAGMENT_PATH = shader_base_path / 'basic/fragment.glsl' + + +class TextureShader(Shader): + UNIFORMS = dict(textureSampler="textureSampler") + VERTEX_PATH = shader_base_path / 'texture/vertex.glsl' + FRAGMENT_PATH = shader_base_path / 'texture/fragment.glsl' |