diff --git a/src/graphics/render_geometry.cpp b/src/graphics/render_geometry.cpp index fa9271ddb..d882ef8ab 100644 --- a/src/graphics/render_geometry.cpp +++ b/src/graphics/render_geometry.cpp @@ -250,10 +250,6 @@ void IrrDriver::renderSolidFirstPass() ListInstancedMatAlphaRef::getInstance()->clear(); ListInstancedMatGrass::getInstance()->clear(); ListInstancedMatNormalMap::getInstance()->clear(); - AnimatedListMatDefault::getInstance()->clear(); - AnimatedListMatAlphaRef::getInstance()->clear(); - AnimatedListMatDetails::getInstance()->clear(); - AnimatedListMatUnlit::getInstance()->clear(); // Add a 30 ms timeout if (!m_sync) m_sync = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); @@ -294,12 +290,6 @@ void IrrDriver::renderSolidFirstPass() TexUnit(0, true) ), ListMatNormalMap::getInstance()); - - renderMeshes1stPass(TexUnits(TexUnit(0, true)), AnimatedListMatDefault::getInstance()); - renderMeshes1stPass(TexUnits(TexUnit(0, true)), AnimatedListMatAlphaRef::getInstance()); - renderMeshes1stPass(TexUnits(TexUnit(0, true)), AnimatedListMatDetails::getInstance()); - renderMeshes1stPass(TexUnits(TexUnit(0, true)), AnimatedListMatUnlit::getInstance()); - if (UserConfigParams::m_azdo) { #ifdef Buffer_Storage @@ -540,39 +530,22 @@ void IrrDriver::renderSolidSecondPass() TexUnit(0, true) ), ListMatDefault::getInstance(), createVector(DiffuseHandle, SpecularHandle, SSAOHandle), DiffSpecSSAOTex); - renderMeshes2ndPass(TexUnits( - TexUnit(0, true) - ), AnimatedListMatDefault::getInstance(), createVector(DiffuseHandle, SpecularHandle, SSAOHandle), DiffSpecSSAOTex); - renderMeshes2ndPass(TexUnits( TexUnit(0, true) ), ListMatAlphaRef::getInstance(), createVector(DiffuseHandle, SpecularHandle, SSAOHandle), DiffSpecSSAOTex); - renderMeshes2ndPass(TexUnits( - TexUnit(0, true) - ), AnimatedListMatAlphaRef::getInstance(), createVector(DiffuseHandle, SpecularHandle, SSAOHandle), DiffSpecSSAOTex); - renderMeshes2ndPass(TexUnits( TexUnit(0, true) ), ListMatSphereMap::getInstance(), createVector(DiffuseHandle, SpecularHandle, SSAOHandle), DiffSpecSSAOTex); - renderMeshes2ndPass(TexUnits( TexUnit(0, true), TexUnit(1, true) ), ListMatDetails::getInstance(), createVector(DiffuseHandle, SpecularHandle, SSAOHandle), DiffSpecSSAOTex); - renderMeshes2ndPass(TexUnits( - TexUnit(0, true), - TexUnit(1, true) - ), AnimatedListMatDetails::getInstance(), createVector(DiffuseHandle, SpecularHandle, SSAOHandle), DiffSpecSSAOTex); renderMeshes2ndPass(TexUnits( TexUnit(0, true) ), ListMatGrass::getInstance(), createVector(DiffuseHandle, SpecularHandle, SSAOHandle), DiffSpecSSAOTex); - renderMeshes2ndPass(TexUnits( TexUnit(0, true) ), ListMatUnlit::getInstance(), createVector(DiffuseHandle, SpecularHandle, SSAOHandle), DiffSpecSSAOTex); - renderMeshes2ndPass(TexUnits( - TexUnit(0, true) - ), AnimatedListMatUnlit::getInstance(), createVector(DiffuseHandle, SpecularHandle, SSAOHandle), DiffSpecSSAOTex); renderMeshes2ndPass(TexUnits( TexUnit(1, false), @@ -581,7 +554,6 @@ void IrrDriver::renderSolidSecondPass() TexUnit(4, true), TexUnit(5, true) ), ListMatSplatting::getInstance(), createVector(DiffuseHandle, SpecularHandle, SSAOHandle), DiffSpecSSAOTex); - renderMeshes2ndPass(TexUnits( TexUnit(0, true) ), ListMatNormalMap::getInstance(), createVector(DiffuseHandle, SpecularHandle, SSAOHandle), DiffSpecSSAOTex); @@ -961,10 +933,6 @@ void IrrDriver::renderShadows() ListInstancedMatAlphaRef::getInstance()->clear(); ListInstancedMatGrass::getInstance()->clear(); ListInstancedMatNormalMap::getInstance()->clear(); - AnimatedListMatDefault::getInstance()->clear(); - AnimatedListMatAlphaRef::getInstance()->clear(); - AnimatedListMatDetails::getInstance()->clear(); - AnimatedListMatUnlit::getInstance()->clear(); m_scene_manager->drawAll(scene::ESNRP_SOLID); std::vector noTexUnits; @@ -977,11 +945,6 @@ void IrrDriver::renderShadows() renderShadow(std::vector{ 0 }, ListMatUnlit::getInstance()); renderShadow(std::vector{ 0 }, ListMatGrass::getInstance()); - renderShadow(noTexUnits, AnimatedListMatDefault::getInstance()); - renderShadow(std::vector{ 0 }, AnimatedListMatAlphaRef::getInstance()); - renderShadow(std::vector{ 0 }, AnimatedListMatUnlit::getInstance()); - renderShadow(noTexUnits, AnimatedListMatDetails::getInstance()); - if (UserConfigParams::m_azdo) { #ifdef Buffer_Storage diff --git a/src/graphics/stkanimatedmesh.cpp b/src/graphics/stkanimatedmesh.cpp index 1b07ba301..15c94e2b5 100644 --- a/src/graphics/stkanimatedmesh.cpp +++ b/src/graphics/stkanimatedmesh.cpp @@ -146,16 +146,16 @@ void STKAnimatedMesh::render() GLMesh* mesh; for_in(mesh, MeshSolidMaterial[MAT_DEFAULT]) - pushVector(AnimatedListMatDefault::getInstance(), mesh, AbsoluteTransformation, invmodel, mesh->TextureMatrix); + pushVector(ListMatDefault::getInstance(), mesh, AbsoluteTransformation, invmodel, mesh->TextureMatrix); for_in(mesh, MeshSolidMaterial[MAT_ALPHA_REF]) - pushVector(AnimatedListMatAlphaRef::getInstance(), mesh, AbsoluteTransformation, invmodel, mesh->TextureMatrix); + pushVector(ListMatAlphaRef::getInstance(), mesh, AbsoluteTransformation, invmodel, mesh->TextureMatrix); for_in(mesh, MeshSolidMaterial[MAT_DETAIL]) - pushVector(AnimatedListMatDetails::getInstance(), mesh, AbsoluteTransformation, invmodel, mesh->TextureMatrix); + pushVector(ListMatDetails::getInstance(), mesh, AbsoluteTransformation, invmodel, mesh->TextureMatrix); for_in(mesh, MeshSolidMaterial[MAT_UNLIT]) - pushVector(AnimatedListMatUnlit::getInstance(), mesh, AbsoluteTransformation, core::matrix4::EM4CONST_IDENTITY, mesh->TextureMatrix); + pushVector(ListMatUnlit::getInstance(), mesh, AbsoluteTransformation, core::matrix4::EM4CONST_IDENTITY, mesh->TextureMatrix); return; } diff --git a/src/graphics/stkmesh.hpp b/src/graphics/stkmesh.hpp index beaee62cb..87fdf9071 100644 --- a/src/graphics/stkmesh.hpp +++ b/src/graphics/stkmesh.hpp @@ -67,15 +67,9 @@ class MeshList : public Singleton, public std::vector > class ListMatDefault : public MeshList {}; -class AnimatedListMatDefault : public MeshList -{}; - class ListMatAlphaRef : public MeshList {}; -class AnimatedListMatAlphaRef : public MeshList -{}; - class ListMatNormalMap : public MeshList {}; @@ -91,15 +85,9 @@ class ListMatSplatting : public MeshList {}; -class AnimatedListMatUnlit : public MeshList -{}; - class ListMatDetails : public MeshList {}; -class AnimatedListMatDetails : public MeshList -{}; - class ListBlendTransparent : public MeshList {};