diff options
author | aap <aap@papnet.eu> | 2021-01-09 19:45:19 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-09 19:45:19 +0100 |
commit | d3aa8a118cfaed768519c1db3214453e6d3ceb52 (patch) | |
tree | 8794f9b966c55b6e00848366e176df41e0d39f02 /src/extras/custompipes_d3d9.cpp | |
parent | moved new renderer; implemented leeds building rendering (diff) | |
download | re3-d3aa8a118cfaed768519c1db3214453e6d3ceb52.tar re3-d3aa8a118cfaed768519c1db3214453e6d3ceb52.tar.gz re3-d3aa8a118cfaed768519c1db3214453e6d3ceb52.tar.bz2 re3-d3aa8a118cfaed768519c1db3214453e6d3ceb52.tar.lz re3-d3aa8a118cfaed768519c1db3214453e6d3ceb52.tar.xz re3-d3aa8a118cfaed768519c1db3214453e6d3ceb52.tar.zst re3-d3aa8a118cfaed768519c1db3214453e6d3ceb52.zip |
Diffstat (limited to 'src/extras/custompipes_d3d9.cpp')
-rw-r--r-- | src/extras/custompipes_d3d9.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/extras/custompipes_d3d9.cpp b/src/extras/custompipes_d3d9.cpp index d2d50bca..993a64ce 100644 --- a/src/extras/custompipes_d3d9.cpp +++ b/src/extras/custompipes_d3d9.cpp @@ -699,10 +699,6 @@ RenderBlendPass(int pass) setIndices(building->instHeader->indexBuffer); setVertexDeclaration(building->instHeader->vertexDeclaration); d3ddevice->SetVertexShaderConstantF(VSLOC_combined, (float*)&building->combinedMat, 4); - if(building->lighting) - setAmbient(pAmbient->color); - else - setAmbient(black); InstanceData *inst = building->instHeader->inst; for(rw::uint32 j = 0; j < building->instHeader->numMeshes; j++, inst++){ @@ -723,7 +719,7 @@ RenderBlendPass(int pass) rw::RGBA color = m->color; color.alpha = (color.alpha * building->fadeAlpha)/255; - setMaterial(m->color, m->surfaceProps, 0.5f); + setMaterial(color, m->surfaceProps, 0.5f); drawInst(building->instHeader, inst); } |