diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-03 03:41:32 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-12-03 03:41:32 +0000 |
commit | aa75b018f3b97c72b57de68867417cbda51439c3 (patch) | |
tree | 446efaad2727ae6bff6433e8bfbf590e99d5e310 /gfx/gl/shaders/shadowDynamicPoint.vs | |
parent | Add GL_DEBUG_OUTPUT with boost test error handling to test-render context (diff) | |
download | ilt-aa75b018f3b97c72b57de68867417cbda51439c3.tar.bz2 ilt-aa75b018f3b97c72b57de68867417cbda51439c3.tar.xz ilt-aa75b018f3b97c72b57de68867417cbda51439c3.zip |
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.
Diffstat (limited to 'gfx/gl/shaders/shadowDynamicPoint.vs')
-rw-r--r-- | gfx/gl/shaders/shadowDynamicPoint.vs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gfx/gl/shaders/shadowDynamicPoint.vs b/gfx/gl/shaders/shadowDynamicPoint.vs new file mode 100644 index 0000000..91d8bf7 --- /dev/null +++ b/gfx/gl/shaders/shadowDynamicPoint.vs @@ -0,0 +1,12 @@ +#version 330 core + +in vec3 position; + +uniform mat4 viewProjection; +uniform mat4 model; + +void +main() +{ + gl_Position = viewProjection * model * vec4(position, 1.0); +} |