Lighting-related block variables
#10
Well, i can't find anything in the code where it says that fence etc reduces the light value by one but i think i miss understood that. Of course every block reduces the light value by one because the light travels one block but then every single block that is in the m_Transparent list has to be in the m_SpreadLightFalloff list because the light can travel trough the block (because it's transparent) but would be reduced by min. 15 because the default m_SpreadLightFalloff value is 15.
For example: The E_BLOCK_ACTIVATOR_RAIL is in the "m_Transparent" list. That means light can travel through the block but it isn't in the "m_SpreadLightFalloff"
list so the light that travels through the block will get reduced by 15 and no light would made it through the Activator rail...

Do you understand me now?
Reply
Thanks given by:


Messages In This Thread
RE: Lighting-related block variables - by xoft - 07-14-2014, 11:57 PM
RE: Lighting-related block variables - by AntherusCraft - 07-15-2014, 12:58 AM
RE: Lighting-related block variables - by xoft - 07-15-2014, 05:53 AM
RE: Lighting-related block variables - by tigerw - 07-16-2014, 01:09 AM
RE: Lighting-related block variables - by xoft - 07-16-2014, 04:19 AM
RE: Lighting-related block variables - by tigerw - 07-16-2014, 06:14 AM
RE: What we're doing - by LO1ZB - 07-14-2014, 09:17 PM
RE: What we're doing - by worktycho - 07-14-2014, 09:22 PM
RE: What we're doing - by AntherusCraft - 07-14-2014, 09:50 PM
RE: What we're doing - by worktycho - 07-14-2014, 09:52 PM
RE: What we're doing - by LO1ZB - 07-14-2014, 10:09 PM
RE: What we're doing - by AntherusCraft - 07-14-2014, 10:19 PM
RE: What we're doing - by xoft - 07-14-2014, 11:41 PM



Users browsing this thread: 8 Guest(s)