summaryrefslogtreecommitdiffhomepage
path: root/src/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'src/shaders')
-rw-r--r--src/shaders/default.frag17
-rw-r--r--src/shaders/default.vert5
2 files changed, 13 insertions, 9 deletions
diff --git a/src/shaders/default.frag b/src/shaders/default.frag
index 2ad6732..2176a7d 100644
--- a/src/shaders/default.frag
+++ b/src/shaders/default.frag
@@ -9,13 +9,14 @@ uniform sampler2D texture_1;
void main()
{
- if(v_TexId > 0)
- {
- FragColor = texture(texture_1, v_TexCoord) * v_Color;
- }
- else
- {
- FragColor = v_Color;
- }
+ FragColor = texture(texture_1, v_TexCoord) * v_Color;
+ //if(v_TexId > 0)
+ //{
+ // FragColor = texture(texture_1, v_TexCoord) * v_Color;
+ //}
+ //else
+ //{
+ // FragColor = v_Color;
+ //}
}
diff --git a/src/shaders/default.vert b/src/shaders/default.vert
index 38e5343..404e583 100644
--- a/src/shaders/default.vert
+++ b/src/shaders/default.vert
@@ -10,9 +10,12 @@ out vec4 v_Color;
out vec2 v_TexCoord;
out float v_TexId;
+uniform mat4 transform;
+
void main()
{
- gl_Position = vec4(a_Pos, 1.0);
+ gl_Position = transform * vec4(a_Pos, 1.0);
+ //gl_Position = vec4(a_Pos, 1.0);
v_Color = a_Color;
v_TexCoord = a_TexCoord;
v_TexId = a_TexId;