From aa75b018f3b97c72b57de68867417cbda51439c3 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 3 Dec 2022 03:41:32 +0000 Subject: Initial commit of the shadow map generator and shadows render interface Lots of hard coding, buggy in places, far from great, but the basics work. --- gfx/gl/shaders/shadowFixedPoint.vs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gfx/gl/shaders/shadowFixedPoint.vs (limited to 'gfx/gl/shaders/shadowFixedPoint.vs') diff --git a/gfx/gl/shaders/shadowFixedPoint.vs b/gfx/gl/shaders/shadowFixedPoint.vs new file mode 100644 index 0000000..9e1cc62 --- /dev/null +++ b/gfx/gl/shaders/shadowFixedPoint.vs @@ -0,0 +1,13 @@ +#version 330 core + +layout(location = 0) in vec3 position; +layout(location = 1) in vec3 normal; +layout(location = 2) in vec2 tex; + +uniform mat4 viewProjection; + +void +main() +{ + gl_Position = viewProjection * vec4(position, 1.0); +} -- cgit v1.2.3