directional light

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
Zak
Posts: 5
Joined: Fri Apr 27, 2007 8:04 am

directional light

Post by Zak »

The omni light is simple and works but the directional light?
I have a tutorial with code in C++ but I don't succeed to trasform
in C# 2005

with reference:

Code: Select all

video::SLight& ldata; 
ldata = light->getLightData(); 
ldata.Type = ELT_DIRECTIONAL; 
ldata.Position = core::vector3df(0,-1,0);  
or

Code: Select all

video::SLight* ldata; 
ldata = &light->getLightData(); 
ldata->Type = ELT_DIRECTIONAL; 
ldata->Position = core::vector3df(0,-1,0); 
:oops:
Locked