16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 07:39:19 +02:00

more pruning, remove texture units from geometrybank and remove dl

geometrybank
This commit is contained in:
milek7
2018-06-25 13:31:58 +02:00
parent d8b3ddba8c
commit 48f2265c34
4 changed files with 11 additions and 134 deletions

View File

@@ -100,10 +100,6 @@ opengl_renderer::Init( GLFWwindow *Window ) {
glFrontFace( GL_CCW );
glEnable( GL_CULL_FACE );
m_geometry.units().texture = (
Global.BasicRenderer ?
std::vector<GLint>{ m_diffusetextureunit } :
std::vector<GLint>{ m_normaltextureunit, m_diffusetextureunit } );
m_textures.assign_units( m_helpertextureunit, m_shadowtextureunit, m_normaltextureunit, m_diffusetextureunit ); // TODO: add reflections unit
UILayer.set_unit( m_diffusetextureunit );
select_unit( m_diffusetextureunit );