summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/shaders/cube.frag3
-rw-r--r--assets/shaders/cube.vert3
-rw-r--r--assets/shaders/triangle.frag2
3 files changed, 5 insertions, 3 deletions
diff --git a/assets/shaders/cube.frag b/assets/shaders/cube.frag
index 88ba822..796f1c8 100644
--- a/assets/shaders/cube.frag
+++ b/assets/shaders/cube.frag
@@ -8,5 +8,6 @@ layout(binding = 1) uniform sampler2D texSampler;
layout(location = 0) out vec4 outColor;
void main() {
- outColor = texture(texSampler, fragTexCoord); // vec4(fragTexCoord, 0.0);
+ // outColor = texture(texSampler, fragTexCoord); // vec4(fragTexCoord, 0.0);
+ outColor = vec4(1.0);
}
diff --git a/assets/shaders/cube.vert b/assets/shaders/cube.vert
index 2f1d76d..57475e7 100644
--- a/assets/shaders/cube.vert
+++ b/assets/shaders/cube.vert
@@ -1,6 +1,6 @@
#version 430
-layout(binding = 0) uniform UniformBufferObject {
+layout(binding = 0) uniform Matrices {
mat4 model;
mat4 view;
mat4 proj;
@@ -15,6 +15,7 @@ layout(location = 1) out vec2 fragTexCoord;
void main() {
gl_Position = ubo.proj * ubo.view * ubo.model * vec4(inPosition, 1.0);
+ // gl_Position = vec4(inPosition, 1.0);
fragColor = abs(inNormal);
fragTexCoord = inTexCoords;
}
diff --git a/assets/shaders/triangle.frag b/assets/shaders/triangle.frag
index c3ff328..ad6de8e 100644
--- a/assets/shaders/triangle.frag
+++ b/assets/shaders/triangle.frag
@@ -1,4 +1,4 @@
-#version 450
+#version 430
layout(location = 0) in vec3 fragColor;
layout(location = 0) out vec4 outColor;