diff --git a/shaders/simple.frag b/shaders/simple.frag index 0debe6e..1029717 100644 --- a/shaders/simple.frag +++ b/shaders/simple.frag @@ -1,8 +1,8 @@ -#version 460 core -layout(binding = 0) uniform sampler2D t; -in vec3 vColor; -in vec2 vUv; +#version 430 core + out vec4 color; -void main() { - color = vec4(vUv, 0, 1.0f); + +void main() +{ + color = vec4(1.0f, 1.0f, 1.0f, 1.0f); } \ No newline at end of file diff --git a/shaders/simple.vert b/shaders/simple.vert index 60103b7..446d1dc 100644 --- a/shaders/simple.vert +++ b/shaders/simple.vert @@ -1,16 +1,8 @@ -#version 460 core -layout (location = 0) in vec3 pos; -layout (location = 1) in vec3 iColor; -layout (location = 2) in vec2 uv; -layout (location = 0) uniform float val; -// layout (location = 0) uniform mat4 P; -// layout (location = 1) uniform mat4 V; -// layout (location = 2) uniform mat4 M; -out vec3 vColor; -out vec2 vUv; -void main() { - // gl_Position = P * V * M * vec4(pos.xyz, 1.0f); - gl_Position = vec4(pos.x, pos.y + val, pos.z, 1.0f); - vColor = iColor; - vUv = uv; -} +#version 430 core + +in vec3 position; + +void main() +{ + gl_Position = vec4(position, 1.0f); +} \ No newline at end of file