Page 1 of 1

directional light

Posted: Thu May 10, 2007 7:03 am
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: