summaryrefslogtreecommitdiffstats
path: root/src/extras/custompipes_d3d9.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:57:26 +0100
commita4d198005ddb2c8bba82b92fb842faad95e6aec4 (patch)
treed7d670d335acf39776ed883df3139b8a164d1fbb /src/extras/custompipes_d3d9.cpp
parentFix undefined colorId for pickups (diff)
downloadre3-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 '')
-rw-r--r--src/extras/custompipes_d3d9.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/extras/custompipes_d3d9.cpp b/src/extras/custompipes_d3d9.cpp
index 63e91063..454f228e 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,