diff options
| author | hachem <im@hachem.wtf> | 2025-08-14 01:41:19 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-14 01:41:19 +0200 |
| commit | f949a0aafe9825b8209c3a9d139a7bf5e22a7897 (patch) | |
| tree | 423b0f8242b156596f2bb9a89fd96a6c099b93d3 /Assets/Textured.glsl | |
| parent | 613f99e937e55f73dcec1251fdce4a9fda077a0f (diff) | |
[add]: Custom UI Font
Diffstat (limited to 'Assets/Textured.glsl')
| -rw-r--r-- | Assets/Textured.glsl | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/Assets/Textured.glsl b/Assets/Textured.glsl deleted file mode 100644 index ad135fe..0000000 --- a/Assets/Textured.glsl +++ /dev/null @@ -1,41 +0,0 @@ -#type vertex -#version 330 core - -layout(location = 0) in vec3 a_Position; -layout(location = 1) in vec4 a_Color; -layout(location = 2) in vec2 a_TexCoord; - -uniform mat4 u_ViewProjection; -uniform mat4 u_Transform; - -out vec3 v_Position; -out vec4 v_Color; -out vec2 v_TexCoord; - -void main() -{ - v_Position = a_Position; - v_Color = a_Color; - v_TexCoord = a_TexCoord; - gl_Position = u_ViewProjection * u_Transform * vec4(a_Position, 1.0); -} - -#type fragment -#version 330 core - -layout(location = 0) out vec4 color; - -in vec3 v_Position; -in vec4 v_Color; -in vec2 v_TexCoord; - -uniform sampler2D u_Texture; - -void main() -{ - vec4 texColor = texture(u_Texture, v_TexCoord); - if (texColor.rgb == vec3(0.0)) - color = v_Color; - else - color = v_Color * texColor; -} |
