Lighting-related block variables
#9
The light should always decrease when going through a block, there is no block in MC that has the falloff of 0 - that would mean you could build an optical fibre in MC, having the light spread indefinitely by such a block. No, that makes no sense.

The desync between m_Transparent and m_SpreadLightFalloff is caused by partial "fixes" - when someone implements a new block, they update just one of the arrays and forgets the other. That's how we get the lighting bugs.

A block can be transparent and still reduce light by more than 1 - see water and lava, for example. So there's no real way to reduce the two arrays into one.
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 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: 1 Guest(s)