summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-12-04 13:57:29 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-12-04 13:57:29 +0000
commitc5f3d3269bf97eab8b79a57388a17e8b81ce724d (patch)
tree0e870566d03ff58c244f49843b507b532d37389f
parentDisable GL_DEBUG_OUTPUT before dumping debug screenshot (diff)
downloadilt-c5f3d3269bf97eab8b79a57388a17e8b81ce724d.tar.bz2
ilt-c5f3d3269bf97eab8b79a57388a17e8b81ce724d.tar.xz
ilt-c5f3d3269bf97eab8b79a57388a17e8b81ce724d.zip
Don't actually need to define an empty fragment shader
-rw-r--r--gfx/gl/shaders/shadowCast.fs6
-rw-r--r--gfx/gl/shadowMapper.cpp9
2 files changed, 2 insertions, 13 deletions
diff --git a/gfx/gl/shaders/shadowCast.fs b/gfx/gl/shaders/shadowCast.fs
deleted file mode 100644
index d427da2..0000000
--- a/gfx/gl/shaders/shadowCast.fs
+++ /dev/null
@@ -1,6 +0,0 @@
-#version 330 core
-
-void
-main()
-{
-}
diff --git a/gfx/gl/shadowMapper.cpp b/gfx/gl/shadowMapper.cpp
index 4cc2e24..a74f3dd 100644
--- a/gfx/gl/shadowMapper.cpp
+++ b/gfx/gl/shadowMapper.cpp
@@ -1,5 +1,4 @@
#include "shadowMapper.h"
-#include "gfx/gl/shaders/fs-shadowCast.h"
#include "gfx/gl/shaders/vs-shadowDynamicPoint.h"
#include "gfx/gl/shaders/vs-shadowFixedPoint.h"
#include "gfx/models/texture.h"
@@ -56,10 +55,7 @@ ShadowMapper::update(const SceneProvider & scene, const glm::vec3 & dir) const
return lightViewProjection;
}
-ShadowMapper::FixedPoint::FixedPoint() :
- Program {shadowFixedPoint_vs, shadowCast_fs}, viewProjectionLoc {*this, "viewProjection"}
-{
-}
+ShadowMapper::FixedPoint::FixedPoint() : Program {shadowFixedPoint_vs}, viewProjectionLoc {*this, "viewProjection"} { }
void
ShadowMapper::FixedPoint::setViewProjection(const glm::mat4 & viewProjection) const
{
@@ -73,8 +69,7 @@ ShadowMapper::FixedPoint::use() const
}
ShadowMapper::DynamicPoint::DynamicPoint() :
- Program {shadowDynamicPoint_vs, shadowCast_fs}, viewProjectionLoc {*this, "viewProjection"}, modelLoc {
- *this, "model"}
+ Program {shadowDynamicPoint_vs}, viewProjectionLoc {*this, "viewProjection"}, modelLoc {*this, "model"}
{
}
void