diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-21 17:48:00 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-21 17:48:00 +1000 |
commit | 66b1e02847e08b8e66e9969f0a3d138c15cc70f4 (patch) | |
tree | a598a4a1716fa985ab4359a60f6a2c93d2ee390b /assets | |
parent | 9f1bfa75490bbdf22dd57ff17352d2736a0891fa (diff) |
terrain/hmap skeleton
Diffstat (limited to 'assets')
-rw-r--r-- | assets/shaders/terrain.frag | 7 | ||||
-rw-r--r-- | assets/shaders/terrain.vert | 13 |
2 files changed, 20 insertions, 0 deletions
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 |