Light Attenuation: How to convert to Mogre?

CK_MACK

18-12-2006 18:35:36

In Ogre we have:
light->setAttenuation( 1000.0f , .5f , .5f , 2.5f );

(I looked up Attenuation but it does not have a set)
How does this work for Mogre?


Thanks,

Marc

Bekas

18-12-2006 19:45:39

Did you look for light.SetAttenuation ?

CK_MACK

18-12-2006 20:38:15

Thank you,
I guess I was confused about converting SetAttenuation in Ogre to Attenuation in Mogre...

The following line worked well:
light1.SetAttenuation(5000.0f, .005f, 0.0005f, 0.0f);

I have sooo much to learn.

Thanks again,

Marc