@@ -292,8 +292,12 @@ void WieldMeshSceneNode::setExtruded(const std::string &imagename,
292
292
#if (IRRLICHT_VERSION_MAJOR >= 1 && IRRLICHT_VERSION_MINOR >= 8) || IRRLICHT_VERSION_MAJOR >= 2
293
293
material.setFlag (video::EMF_USE_MIP_MAPS, false );
294
294
#endif
295
- if (m_enable_shaders)
295
+
296
+ #if 0
297
+ //// TODO(RealBadAngel): Reactivate when shader is added for wield items
298
+ if (m_enable_shaders)
296
299
material.setTexture(2, tsrc->getTexture("disable_img.png"));
300
+ #endif
297
301
}
298
302
299
303
void WieldMeshSceneNode::setItem (const ItemStack &item, IGameDef *gamedef)
@@ -306,10 +310,13 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, IGameDef *gamedef)
306
310
const ContentFeatures &f = ndef->get (def.name );
307
311
content_t id = ndef->getId (def.name );
308
312
313
+ #if 0
314
+ //// TODO(RealBadAngel): Reactivate when shader is added for wield items
309
315
if (m_enable_shaders) {
310
316
u32 shader_id = shdrsrc->getShader("nodes_shader", TILE_MATERIAL_BASIC, NDT_NORMAL);
311
317
m_material_type = shdrsrc->getShaderInfo(shader_id).material;
312
318
}
319
+ #endif
313
320
314
321
// If wield_image is defined, it overrides everything else
315
322
if (def.wield_image != " " ) {
@@ -341,7 +348,7 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, IGameDef *gamedef)
341
348
translateMesh (m_meshnode->getMesh (), v3f (-BS, -BS, -BS));
342
349
m_meshnode->setScale (
343
350
def.wield_scale * WIELD_SCALE_FACTOR
344
- / (BS * f.visual_scale ));
351
+ / (BS * f.visual_scale ));
345
352
}
346
353
for (u32 i = 0 ; i < m_meshnode->getMaterialCount (); ++i) {
347
354
assert (i < 6 );
@@ -357,6 +364,8 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, IGameDef *gamedef)
357
364
material.setTexture (0 , f.tiles [i].texture );
358
365
}
359
366
material.MaterialType = m_material_type;
367
+ #if 0
368
+ //// TODO(RealBadAngel): Reactivate when shader is added for wield items
360
369
if (m_enable_shaders) {
361
370
if (f.tiles[i].normal_texture) {
362
371
if (animated) {
@@ -370,6 +379,7 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, IGameDef *gamedef)
370
379
material.setTexture(2, tsrc->getTexture("disable_img.png"));
371
380
}
372
381
}
382
+ #endif
373
383
}
374
384
return ;
375
385
}
0 commit comments