aboutsummaryrefslogtreecommitdiff
path: root/examples/Demo/CDemo.cpp
diff options
context:
space:
mode:
authorcutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475>2020-06-12 20:41:49 +0000
committercutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475>2020-06-12 20:41:49 +0000
commit20b3d56987ca7b7a9d7f27b0a32a93f12e8dc530 (patch)
tree5fd7cc45a44c46b1134788ed90ffb70398179f4d /examples/Demo/CDemo.cpp
parent084e0e669a8d9c6a373ff3bcb410febca4d4a48a (diff)
downloadirrlicht-20b3d56987ca7b7a9d7f27b0a32a93f12e8dc530.tar.xz
Merging r6075 through r6106 from trunk to ogl-es branch.
Burnings renderer changes. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6116 dfc29bdd-3216-0410-991c-e03cc46cb475
Diffstat (limited to 'examples/Demo/CDemo.cpp')
-rw-r--r--examples/Demo/CDemo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/Demo/CDemo.cpp b/examples/Demo/CDemo.cpp
index 49dd7b6..6c073ab 100644
--- a/examples/Demo/CDemo.cpp
+++ b/examples/Demo/CDemo.cpp
@@ -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());