From 6c98fd6658fcf7c0c676ee88f03e364c852e9f1b Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Wed, 14 May 2014 23:19:31 +0200 Subject: Unite nodes shaders. Pass drawtype and material type to shaders. Move shaders generation to startup only. Allow assign shaders per tile. Initial code to support water surface shader. --- src/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 5f3c3f590..8b89dd63c 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -2670,9 +2670,9 @@ void Client::afterContentReceived(IrrlichtDevice *device, gui::IGUIFont* font) infostream<<"- Updating node aliases"<updateAliases(m_itemdef); - // Update node textures + // Update node textures and assign shaders to each tile infostream<<"- Updating node textures"<updateTextures(m_tsrc); + m_nodedef->updateTextures(m_tsrc, m_shsrc); // Preload item textures and meshes if configured to if(g_settings->getBool("preload_item_visuals")) -- cgit v1.2.3