blob: 180225a3b837451c94746a3a45a601eff444508f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
from .shader import Shader
from ..app import builtin_resource_path
shader_base_path = builtin_resource_path / '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'
class FontShader(Shader):
UNIFORMS = dict(textureSampler="textureSampler")
VERTEX_PATH = shader_base_path / 'font/vertex.glsl'
FRAGMENT_PATH = shader_base_path / 'font/fragment.glsl'
|