Light masks.

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
tseiler
Gnoblar
Posts: 4
Joined: Tue Nov 19, 2013 12:45 am

Light masks.

Post by tseiler »

Could someone show me how lightmasks works?
I can't figure it out.
I was expecting to find a "setMask" and a "setFlags" combination of functions, similar to setVisibilityFlags() and setVisibilityMask(), but I did not.

I tried:

Code: Select all

movable_obj->setLightMask(mask)
But that's all I could find. I couldn't figure out how to set up the light to be masked (or not).
I expected there to be a "setFlags()" function on the light, but I don't see it.

Thanks.
bstone
OGRE Expert User
OGRE Expert User
Posts: 1920
Joined: Sun Feb 19, 2012 9:24 pm
Location: Russia
x 201

Re: Light masks.

Post by bstone »

Ogre::Light inherits from Ogre::MovableObject. You have Light::setLightMask() for all your needs.
Post Reply