Code: Select all
material Template/try_to_blend
{
technique
{
pass
{
texture_unit
{
texture Grass.png
}
texture_unit
{
texture alpha_blend.png
colour_op alpha_blend
}
texture_unit
{
texture Destina.png
colour_op_ex blend_current_alpha src_texture src_current
}
}
}
}Code: Select all
Plane plane(Vector3::UNIT_Y,0);
MeshManager::getSingleton().createPlane("IDNamaPlane",
ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,plane,1500,1500,
20,20,true,1,5,5,Vector3::UNIT_Z);
Entity* ent = mSceneMgr->createEntity("GroundPlane","IDNamaPlane");
mSceneMgr->getRootSceneNode()->createChildSceneNode()->attachObject(ent);
ent->setMaterialName("Template/try_to_blend");someone please help me
