From 66b1e02847e08b8e66e9969f0a3d138c15cc70f4 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 21 Jul 2024 17:48:00 +1000 Subject: terrain/hmap skeleton --- assets/shaders/terrain.frag | 7 +++++++ assets/shaders/terrain.vert | 13 +++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 assets/shaders/terrain.frag create mode 100644 assets/shaders/terrain.vert (limited to 'assets') diff --git a/assets/shaders/terrain.frag b/assets/shaders/terrain.frag new file mode 100644 index 0000000..5bce13b --- /dev/null +++ b/assets/shaders/terrain.frag @@ -0,0 +1,7 @@ +#version 410 core + +out vec4 FragColor; + +void main() { + FragColor = vec4(1.0); +} \ No newline at end of file diff --git a/assets/shaders/terrain.vert b/assets/shaders/terrain.vert new file mode 100644 index 0000000..5af1560 --- /dev/null +++ b/assets/shaders/terrain.vert @@ -0,0 +1,13 @@ +#version 410 core + +layout(location = 0) in vec3 inPosition; + +uniform Camera { + mat4 view; + mat4 proj; + vec4 viewPos; +} cam; + +void main() { + gl_Position = cam.proj * cam.view * vec4(inPosition, 1.0); +} \ No newline at end of file -- cgit v1.2.3-70-g09d2