irrlicht/irrlicht-1.8-directionlight.patch

15 lines
606 B
Diff

Index: irrlicht-1.8/source/Irrlicht/CLightSceneNode.cpp
===================================================================
--- irrlicht-1.8.orig/source/Irrlicht/CLightSceneNode.cpp
+++ irrlicht-1.8/source/Irrlicht/CLightSceneNode.cpp
@@ -66,7 +66,8 @@ void CLightSceneNode::render()
case video::ELT_DIRECTIONAL:
driver->draw3DLine(core::vector3df(0.f, 0.f, 0.f),
- LightData.Direction * LightData.Radius,
+ //LightData.Direction * LightData.Radius,
+ core::vector3df(0.f, 0.f, LightData.Radius),
LightData.DiffuseColor.toSColor());
break;
default: