diff options
author | aap <aap@papnet.eu> | 2020-10-27 15:55:07 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-10-27 15:55:07 +0100 |
commit | 78ac22ee2cfa12c1e8c93cca956f1aa1f93c76dc (patch) | |
tree | 527d1c6df8744f16662d9fdf24be47dcd15584b1 /src/extras/custompipes_d3d9.cpp | |
parent | OpenAL channels now use their own sound buffers (diff) | |
download | re3-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_d3d9.cpp')
-rw-r--r-- | src/extras/custompipes_d3d9.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/extras/custompipes_d3d9.cpp b/src/extras/custompipes_d3d9.cpp index bfc744a3..852f2df8 100644 --- a/src/extras/custompipes_d3d9.cpp +++ b/src/extras/custompipes_d3d9.cpp @@ -190,6 +190,11 @@ worldRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header) using namespace rw::d3d; using namespace rw::d3d9; + if(!LightmapEnable){ + defaultRenderCB_Shader(atomic, header); + return; + } + int vsBits; setStreamSource(0, header->vertexStream[0].vertexBuffer, 0, header->vertexStream[0].stride); setIndices(header->indexBuffer); @@ -297,6 +302,9 @@ glossRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header) using namespace rw::d3d; using namespace rw::d3d9; + if(!GlossEnable) + return; + setVertexShader(neoGloss_VS); setPixelShader(neoGloss_PS); @@ -395,6 +403,11 @@ rimRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header) using namespace rw::d3d; using namespace rw::d3d9; + if(!RimlightEnable){ + defaultRenderCB_Shader(atomic, header); + return; + } + int vsBits; setStreamSource(0, header->vertexStream[0].vertexBuffer, 0, header->vertexStream[0].stride); setIndices(header->indexBuffer); @@ -433,6 +446,11 @@ rimSkinRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header) using namespace rw::d3d; using namespace rw::d3d9; + if(!RimlightEnable){ + rimSkinRenderCB(atomic, header); + return; + } + int vsBits; setStreamSource(0, (IDirect3DVertexBuffer9*)header->vertexStream[0].vertexBuffer, |