aboutsummaryrefslogtreecommitdiff
path: root/Assets/Shaders/Textured.glsl
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-14 18:21:00 +0200
committerhachem <im@hachem.wtf>2025-08-14 18:21:00 +0200
commitbc2d88c799cb3913a5defe4ea9ddea9c56814349 (patch)
treeea60d47c5924ba56f6d84de9d7baa38f1710f13a /Assets/Shaders/Textured.glsl
parent5265d5f8cacdb8af523e2b2fbfa45f0ef44b9995 (diff)
[help]: I am going to throw my computer out a window
Diffstat (limited to 'Assets/Shaders/Textured.glsl')
-rw-r--r--Assets/Shaders/Textured.glsl41
1 files changed, 0 insertions, 41 deletions
diff --git a/Assets/Shaders/Textured.glsl b/Assets/Shaders/Textured.glsl
deleted file mode 100644
index ad135fe..0000000
--- a/Assets/Shaders/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;
-}