diff options
author | chai <chaifix@163.com> | 2021-11-03 19:14:51 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-03 19:14:51 +0800 |
commit | cc68bba3a4e1a78bc8b62a5902230a4ae5043ccb (patch) | |
tree | 7fdfac53e0a79699393537e671ccde6e7b482c0d /Data/Resources/Shaders/Editor-Text.glsl | |
parent | 08ddd44b634d4da78edd0964f539a310544c7883 (diff) |
* rename .GLSL(gamelab shading language) to .GLS(gamelab shader)
Diffstat (limited to 'Data/Resources/Shaders/Editor-Text.glsl')
-rw-r--r-- | Data/Resources/Shaders/Editor-Text.glsl | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/Data/Resources/Shaders/Editor-Text.glsl b/Data/Resources/Shaders/Editor-Text.glsl deleted file mode 100644 index 7548507..0000000 --- a/Data/Resources/Shaders/Editor-Text.glsl +++ /dev/null @@ -1,47 +0,0 @@ -// 渲染编辑器文字 - -#version 330 core - -CMD_BEGIN -Cull Off -Blend SrcAlpha OneMinusSrcAlpha -DepthTest Off -CMD_END - -uniform mat4 gamelab_mat_mvp; -uniform sampler2D gamelab_main_tex; -uniform vec2 gamelab_ui_position; - -VSH_BEGIN -layout (location = 0) in vec2 vPos; -layout (location = 1) in vec2 vUV; -layout (location = 2) in vec4 vColor; - -out vec2 uv; -out vec4 color; - -void main() -{ - vec2 pos = vPos + gamelab_ui_position; - vec4 clip = gamelab_mat_mvp * vec4(pos, -1, 1.0); - gl_Position = clip; - uv = vUV; - color = vColor; -} -VSH_END - -FSH_BEGIN -in vec2 uv; -in vec4 color; - -out vec4 FragColor; - -void main() -{ - //vec2 uv = vec2(uv.x, 1 - uv.y); - vec4 sampled = vec4(0.8,0.8,0.8,texture(gamelab_main_tex, uv).r); - sampled *= color; - //sampled = vec4(1,1,1,1); - FragColor = sampled; -} -FSH_END |