//テクスチャ読み込み
ITexture* Texture;
Texture = driver->getTexture("wall.bmp");
SMaterial Material;
Material.Lighting = false; //光源影響:OFF
Material.BackfaceCulling = false; //背面カリング:OFF
Material.ZBuffer = false; //Zバッファ無効:OFF
Material.TextureLayer[0].Texture = Texture;
Material.MaterialType = EMT_TRANSPARENT_ADD_COLOR;//マテリアル透過
driver->setMaterial(Material);
|