diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-01-31 02:51:16 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-01-31 02:51:16 +0000 |
| commit | bc0958cc863083b4082161bf12456fdf28ab1c77 (patch) | |
| tree | f970782f232d86325f14a36b83125791f24335af /gfx/gl/shaders/landmass.vert | |
| parent | Initial commit using tesselation shader to create curves (diff) | |
| download | ilt-bc0958cc863083b4082161bf12456fdf28ab1c77.tar.bz2 ilt-bc0958cc863083b4082161bf12456fdf28ab1c77.tar.xz ilt-bc0958cc863083b4082161bf12456fdf28ab1c77.zip | |
Rename shader source in keeping with glsl expectations
Swaps name/type of generated files to match class names and source
files.
Diffstat (limited to 'gfx/gl/shaders/landmass.vert')
| -rw-r--r-- | gfx/gl/shaders/landmass.vert | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gfx/gl/shaders/landmass.vert b/gfx/gl/shaders/landmass.vert new file mode 100644 index 0000000..91fc7f8 --- /dev/null +++ b/gfx/gl/shaders/landmass.vert @@ -0,0 +1,19 @@ +#version 460 core + +layout(location = 0) in ivec3 position; +layout(location = 1) in vec3 normal; + +out vec3 FragPos; +out vec3 Normal; + +uniform mat4 viewProjection; +uniform ivec3 viewPoint; + +void +main() +{ + FragPos = position - viewPoint; + Normal = normal; + + gl_Position = viewProjection * vec4(FragPos, 1); +} |
