mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-28 06:20:21 +02:00
Demo - billboard zbuffer
11.PerPixelLighting - darker light, enable specular again for diffuse - replace wrong irrlichtlogo2.png (was a test around 2005) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6088 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@ -497,6 +497,7 @@ void CDemo::loadSceneData()
|
||||
bill = sm->addBillboardSceneNode(0, core::dimension2d<f32>(100,100),
|
||||
waypoint[r]+ core::vector3df(0,20,0));
|
||||
bill->setMaterialFlag(video::EMF_LIGHTING, false);
|
||||
bill->setMaterialFlag(video::EMF_ZWRITE_ENABLE, false);
|
||||
bill->setMaterialTexture(0, driver->getTexture(mediaPath + "portal1.bmp"));
|
||||
bill->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);
|
||||
bill->addAnimator(anim);
|
||||
@ -583,7 +584,7 @@ void CDemo::createLoadingScreen()
|
||||
const io::path mediaPath = getExampleMediaPath();
|
||||
|
||||
// irrlicht logo
|
||||
device->getGUIEnvironment()->addImage(device->getVideoDriver()->getTexture(mediaPath + "irrlichtlogo2.png"),
|
||||
device->getGUIEnvironment()->addImage(device->getVideoDriver()->getTexture(mediaPath + "irrlichtlogo3.png"),
|
||||
core::position2d<s32>(5,5));
|
||||
|
||||
// loading text
|
||||
@ -648,8 +649,8 @@ void CDemo::shoot()
|
||||
else
|
||||
{
|
||||
// doesnt collide with wall
|
||||
core::vector3df start = camera->getPosition();
|
||||
core::vector3df end = (camera->getTarget() - start);
|
||||
start = camera->getPosition();
|
||||
end = (camera->getTarget() - start);
|
||||
end.normalize();
|
||||
start += end*8.0f;
|
||||
end = start + (end * camera->getFarValue());
|
||||
|
@ -70,7 +70,7 @@ bool CMainMenu::run()
|
||||
gui::IGUIListBox* box = guienv->addListBox(core::rect<int>(10,10,220,120), optTab, 1);
|
||||
box->addItem(L"OpenGL 1.5");
|
||||
box->addItem(L"Direct3D 9.0c");
|
||||
box->addItem(L"Burning's Video 0.47");
|
||||
box->addItem(L"Burning's Video 0.5");
|
||||
box->addItem(L"Irrlicht Software Renderer 1.0");
|
||||
switch (driverType )
|
||||
{
|
||||
@ -184,6 +184,7 @@ bool CMainMenu::run()
|
||||
{
|
||||
bill->setMaterialFlag(video::EMF_LIGHTING, false);
|
||||
bill->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);
|
||||
bill->setMaterialFlag(video::EMF_ZWRITE_ENABLE, false);
|
||||
bill->setMaterialTexture(0, driver->getTexture(mediaPath + "particlered.bmp"));
|
||||
}
|
||||
// add fly circle animator to the light
|
||||
@ -202,6 +203,7 @@ bool CMainMenu::run()
|
||||
{
|
||||
bill->setMaterialFlag(video::EMF_LIGHTING, false);
|
||||
bill->setMaterialType(video::EMT_TRANSPARENT_ADD_COLOR);
|
||||
bill->setMaterialFlag(video::EMF_ZWRITE_ENABLE, false);
|
||||
bill->setMaterialTexture(0, driver->getTexture(mediaPath + "portal1.bmp"));
|
||||
}
|
||||
// add fly circle animator to the light
|
||||
|
Reference in New Issue
Block a user