From 741bb027df58fd9f30f4d94cdaf2d6416e11e3ee Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 16 Apr 2024 00:23:43 +0100 Subject: Custom vertex, vertex shader and fragment shader for landmass Handles global position type, colourBias for surface types --- gfx/gl/shaders/shadowLandmass.vs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gfx/gl/shaders/shadowLandmass.vs (limited to 'gfx/gl/shaders/shadowLandmass.vs') diff --git a/gfx/gl/shaders/shadowLandmass.vs b/gfx/gl/shaders/shadowLandmass.vs new file mode 100644 index 0000000..becf142 --- /dev/null +++ b/gfx/gl/shaders/shadowLandmass.vs @@ -0,0 +1,13 @@ +#version 330 core + +layout(location = 0) in ivec3 position; + +uniform ivec3 viewPoint; + +out vec4 vworldPos; + +void +main() +{ + vworldPos = vec4(position - viewPoint, 1); +} -- cgit v1.2.3