summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-28 15:35:35 +0100
committeraap <aap@papnet.eu>2021-01-28 15:35:35 +0100
commit9e3c19237630d689a0edff0bbec91226bba567e9 (patch)
tree9b4b9a29a474f789f128b4e7172d8bf8d15722d5
parentUse previous naming & fix LineOfSightSectorList too (diff)
downloadre3-9e3c19237630d689a0edff0bbec91226bba567e9.tar
re3-9e3c19237630d689a0edff0bbec91226bba567e9.tar.gz
re3-9e3c19237630d689a0edff0bbec91226bba567e9.tar.bz2
re3-9e3c19237630d689a0edff0bbec91226bba567e9.tar.lz
re3-9e3c19237630d689a0edff0bbec91226bba567e9.tar.xz
re3-9e3c19237630d689a0edff0bbec91226bba567e9.tar.zst
re3-9e3c19237630d689a0edff0bbec91226bba567e9.zip
Diffstat (limited to '')
-rw-r--r--src/extras/custompipes_gl.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/extras/custompipes_gl.cpp b/src/extras/custompipes_gl.cpp
index 67be4afd..8a574579 100644
--- a/src/extras/custompipes_gl.cpp
+++ b/src/extras/custompipes_gl.cpp
@@ -333,7 +333,12 @@ glossRenderCB(rw::Atomic *atomic, rw::gl3::InstanceDataHeader *header)
V3d eyePos = rw::engine->currentCamera->getFrame()->getLTM()->pos;
glUniform3fv(U(u_eye), 1, (float*)&eyePos);
- glUniform4fv(U(u_reflProps), 1, (float*)&GlossMult);
+ float reflProps[4];
+ reflProps[0] = GlossMult;
+ reflProps[1] = 0.0f;
+ reflProps[2] = 0.0f;
+ reflProps[3] = 0.0f;
+ glUniform4fv(U(u_reflProps), 1, reflProps);
SetRenderState(VERTEXALPHA, TRUE);
SetRenderState(SRCBLEND, BLENDONE);