diff options
author | aap <aap@papnet.eu> | 2020-10-27 15:55:07 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-10-27 15:57:26 +0100 |
commit | a4d198005ddb2c8bba82b92fb842faad95e6aec4 (patch) | |
tree | d7d670d335acf39776ed883df3139b8a164d1fbb /src/extras/custompipes_gl.cpp | |
parent | Fix undefined colorId for pickups (diff) | |
download | re3-a4d198005ddb2c8bba82b92fb842faad95e6aec4.tar re3-a4d198005ddb2c8bba82b92fb842faad95e6aec4.tar.gz re3-a4d198005ddb2c8bba82b92fb842faad95e6aec4.tar.bz2 re3-a4d198005ddb2c8bba82b92fb842faad95e6aec4.tar.lz re3-a4d198005ddb2c8bba82b92fb842faad95e6aec4.tar.xz re3-a4d198005ddb2c8bba82b92fb842faad95e6aec4.tar.zst re3-a4d198005ddb2c8bba82b92fb842faad95e6aec4.zip |
Diffstat (limited to 'src/extras/custompipes_gl.cpp')
-rw-r--r-- | src/extras/custompipes_gl.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/extras/custompipes_gl.cpp b/src/extras/custompipes_gl.cpp index cb434ea1..dbd4d7d6 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()); |