summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-05-19 23:26:32 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-05-19 23:26:32 +1000
commit63de5753d03dd7fe1f60b98e3825023d5b3392d6 (patch)
treec581897313db3db6d53d5adc8bbfc064c03d7042 /assets
parentb6a4ac7b2d9d94a25ecdff007f87587512f5711d (diff)
wip: depth
Diffstat (limited to 'assets')
-rw-r--r--assets/shaders/cube.frag2
-rw-r--r--assets/shaders/cube.vert3
2 files changed, 3 insertions, 2 deletions
diff --git a/assets/shaders/cube.frag b/assets/shaders/cube.frag
index 11f1efa..292578f 100644
--- a/assets/shaders/cube.frag
+++ b/assets/shaders/cube.frag
@@ -8,5 +8,5 @@ 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);
}
diff --git a/assets/shaders/cube.vert b/assets/shaders/cube.vert
index fa9f85b..dc625ec 100644
--- a/assets/shaders/cube.vert
+++ b/assets/shaders/cube.vert
@@ -4,7 +4,8 @@ layout(binding = 0) uniform UniformBufferObject {
mat4 model;
mat4 view;
mat4 proj;
-} ubo;
+}
+ubo;
layout(location = 0) in vec3 inPosition;
layout(location = 1) in vec3 inNormal;