diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-12-04 13:16:21 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-12-04 13:18:33 -0500 |
| commit | ba2f810f0752bdecf8253b34bd245c7939f23534 (patch) | |
| tree | 23a5fa60afb7f9f5d0ff1b51d11bb8dd24f46e04 /assets/vertex.glsl | |
| download | voxel-ba2f810f0752bdecf8253b34bd245c7939f23534.tar.gz voxel-ba2f810f0752bdecf8253b34bd245c7939f23534.tar.bz2 voxel-ba2f810f0752bdecf8253b34bd245c7939f23534.zip | |
initial chunk rendering
Diffstat (limited to 'assets/vertex.glsl')
| -rwxr-xr-x | assets/vertex.glsl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/assets/vertex.glsl b/assets/vertex.glsl new file mode 100755 index 0000000..a0af427 --- /dev/null +++ b/assets/vertex.glsl @@ -0,0 +1,14 @@ +#version 330
+
+in vec3 position;
+in uint data;
+
+flat out uint pass_data;
+
+uniform mat4 proj_view;
+
+void main(void)
+{
+ gl_Position = proj_view * vec4(position, 1.0);
+ pass_data = data;
+}
|