summaryrefslogtreecommitdiffstats
path: root/src/extras/custompipes_gl.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-10-27 15:55:07 +0100
committeraap <aap@papnet.eu>2020-10-27 15:55:07 +0100
commit78ac22ee2cfa12c1e8c93cca956f1aa1f93c76dc (patch)
tree527d1c6df8744f16662d9fdf24be47dcd15584b1 /src/extras/custompipes_gl.cpp
parentOpenAL channels now use their own sound buffers (diff)
downloadre3-78ac22ee2cfa12c1e8c93cca956f1aa1f93c76dc.tar
re3-78ac22ee2cfa12c1e8c93cca956f1aa1f93c76dc.tar.gz
re3-78ac22ee2cfa12c1e8c93cca956f1aa1f93c76dc.tar.bz2
re3-78ac22ee2cfa12c1e8c93cca956f1aa1f93c76dc.tar.lz
re3-78ac22ee2cfa12c1e8c93cca956f1aa1f93c76dc.tar.xz
re3-78ac22ee2cfa12c1e8c93cca956f1aa1f93c76dc.tar.zst
re3-78ac22ee2cfa12c1e8c93cca956f1aa1f93c76dc.zip
Diffstat (limited to 'src/extras/custompipes_gl.cpp')
-rw-r--r--src/extras/custompipes_gl.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/extras/custompipes_gl.cpp b/src/extras/custompipes_gl.cpp
index 5717c83b..01663df5 100644
--- a/src/extras/custompipes_gl.cpp
+++ b/src/extras/custompipes_gl.cpp
@@ -203,6 +203,11 @@ worldRenderCB(rw::Atomic *atomic, rw::gl3::InstanceDataHeader *header)
using namespace rw;
using namespace rw::gl3;
+ if(!LightmapEnable){
+ gl3::defaultRenderCB(atomic, header);
+ return;
+ }
+
Material *m;
setWorldMatrix(atomic->getFrame()->getLTM());
@@ -315,6 +320,8 @@ glossRenderCB(rw::Atomic *atomic, rw::gl3::InstanceDataHeader *header)
using namespace rw::gl3;
worldRenderCB(atomic, header);
+ if(!GlossEnable)
+ return;
Material *m;
@@ -442,6 +449,11 @@ rimSkinRenderCB(rw::Atomic *atomic, rw::gl3::InstanceDataHeader *header)
using namespace rw;
using namespace rw::gl3;
+ if(!RimlightEnable){
+ gl3::skinRenderCB(atomic, header);
+ return;
+ }
+
Material *m;
setWorldMatrix(atomic->getFrame()->getLTM());
@@ -487,6 +499,11 @@ rimRenderCB(rw::Atomic *atomic, rw::gl3::InstanceDataHeader *header)
using namespace rw;
using namespace rw::gl3;
+ if(!RimlightEnable){
+ gl3::defaultRenderCB(atomic, header);
+ return;
+ }
+
Material *m;
setWorldMatrix(atomic->getFrame()->getLTM());