diff options
author | chai <chaifix@163.com> | 2021-10-30 12:16:59 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-30 12:16:59 +0800 |
commit | b2433cf2faf5c5c3d82d61c7b44928923c5fdcda (patch) | |
tree | b6a9b75ec0f8da057f5987357c1051e9f845bcc3 /Data/Resources/Shaders/Editor-UI.glsl | |
parent | 53364ddc2e09362cb17432abf4fb598557554a9f (diff) |
+freetype
Diffstat (limited to 'Data/Resources/Shaders/Editor-UI.glsl')
-rw-r--r-- | Data/Resources/Shaders/Editor-UI.glsl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Data/Resources/Shaders/Editor-UI.glsl b/Data/Resources/Shaders/Editor-UI.glsl index 493ed9b..91aeb01 100644 --- a/Data/Resources/Shaders/Editor-UI.glsl +++ b/Data/Resources/Shaders/Editor-UI.glsl @@ -1,8 +1,5 @@ #version 330 core -uniform vec4 screenSize; -uniform vec4 windowSize; - VSH_BEGIN layout (location = 0) in vec2 vPos; @@ -10,21 +7,26 @@ layout (location = 1) in vec2 vUV; uniform mat4 mvp; +out vec2 uv; + void main() { vec4 clip = mvp * vec4(vPos, -1, 1.0); gl_Position = clip; + uv = vUV; } VSH_END FSH_BEGIN +uniform sampler2D uiTex; + +in vec2 uv; out vec4 FragColor; void main() { - FragColor = vec4(1,1,1,1); + FragColor = texture(uiTex, uv); } - FSH_END |