irr: Add texture override support
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13466 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
04d5903f57
commit
c90954ee51
@ -8,3 +8,4 @@ The following changes have been made:
|
|||||||
- partial backport to expose setCurrentRendertime in the scene mgr
|
- partial backport to expose setCurrentRendertime in the scene mgr
|
||||||
- a workaround for every other RTTs flipping
|
- a workaround for every other RTTs flipping
|
||||||
- aabbox intersection support
|
- aabbox intersection support
|
||||||
|
- texture override
|
||||||
|
@ -87,7 +87,16 @@ namespace video
|
|||||||
EMF_POLYGON_OFFSET = 0x80000,
|
EMF_POLYGON_OFFSET = 0x80000,
|
||||||
|
|
||||||
//! MaterialType override
|
//! MaterialType override
|
||||||
EMF_MATERIAL_TYPE = 0x100000
|
EMF_MATERIAL_TYPE = 0x100000,
|
||||||
|
|
||||||
|
//! Texture
|
||||||
|
EMF_TEXTURE0 = 0x200000,
|
||||||
|
|
||||||
|
//! Texture
|
||||||
|
EMF_TEXTURE1 = 0x400000,
|
||||||
|
|
||||||
|
//! Texture
|
||||||
|
EMF_TEXTURE2 = 0x800000,
|
||||||
};
|
};
|
||||||
|
|
||||||
} // end namespace video
|
} // end namespace video
|
||||||
|
@ -201,6 +201,12 @@ namespace video
|
|||||||
case EMF_POLYGON_OFFSET:
|
case EMF_POLYGON_OFFSET:
|
||||||
material.PolygonOffsetDirection = Material.PolygonOffsetDirection;
|
material.PolygonOffsetDirection = Material.PolygonOffsetDirection;
|
||||||
material.PolygonOffsetFactor = Material.PolygonOffsetFactor; break;
|
material.PolygonOffsetFactor = Material.PolygonOffsetFactor; break;
|
||||||
|
case EMF_TEXTURE0:
|
||||||
|
material.TextureLayer[0] = Material.TextureLayer[0]; break;
|
||||||
|
case EMF_TEXTURE1:
|
||||||
|
material.TextureLayer[1] = Material.TextureLayer[1]; break;
|
||||||
|
case EMF_TEXTURE2:
|
||||||
|
material.TextureLayer[2] = Material.TextureLayer[2]; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user