aboutsummaryrefslogtreecommitdiff
path: root/src/shader.cpp
diff options
context:
space:
mode:
authorlhofhansl <lhofhansl@yahoo.com>2016-11-04 10:12:45 -0700
committerest31 <est31@users.noreply.github.com>2016-11-04 18:12:45 +0100
commit6bb43472082d8003a6cd140c1221c81005fdd752 (patch)
tree7136b5f7947183f45b5c160c53f76b70f523eaac /src/shader.cpp
parentdde66a82ed06c4887ce0e63ef5f0b8d3bce2ed74 (diff)
downloadminetest-6bb43472082d8003a6cd140c1221c81005fdd752.tar.gz
minetest-6bb43472082d8003a6cd140c1221c81005fdd752.tar.bz2
minetest-6bb43472082d8003a6cd140c1221c81005fdd752.zip
Remove unused shader matrices. (#4723)
Diffstat (limited to 'src/shader.cpp')
-rw-r--r--src/shader.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/shader.cpp b/src/shader.cpp
index e13ab8df3..b0131c952 100644
--- a/src/shader.cpp
+++ b/src/shader.cpp
@@ -219,14 +219,6 @@ public:
video::IVideoDriver *driver = services->getVideoDriver();
sanity_check(driver);
- // set inverted world matrix
- core::matrix4 invWorld = driver->getTransform(video::ETS_WORLD);
- invWorld.makeInverse();
- if(is_highlevel)
- services->setVertexShaderConstant("mInvWorld", invWorld.pointer(), 16);
- else
- services->setVertexShaderConstant(invWorld.pointer(), 0, 4);
-
// set clip matrix
core::matrix4 worldViewProj;
worldViewProj = driver->getTransform(video::ETS_PROJECTION);
@@ -237,14 +229,6 @@ public:
else
services->setVertexShaderConstant(worldViewProj.pointer(), 4, 4);
- // set transposed world matrix
- core::matrix4 transWorld = driver->getTransform(video::ETS_WORLD);
- transWorld = transWorld.getTransposed();
- if(is_highlevel)
- services->setVertexShaderConstant("mTransWorld", transWorld.pointer(), 16);
- else
- services->setVertexShaderConstant(transWorld.pointer(), 8, 4);
-
// set world matrix
core::matrix4 world = driver->getTransform(video::ETS_WORLD);
if(is_highlevel)