Get light from chunk
#1
Hello,

I searched how to get chunk enlightenment in order to make mobs spawn right, but founded it nowhere.

Even Sugarcane and Pumpkins seems not to need light to grow.

As you mentioned earlier that it was something tricky (I understood that enlightenment calculation was mad on separated thread), I do prefer to be carefull and ask before doing.

Do you think I could replace
Code:
bool cChunk::UnboundedRelGetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta) const
by :
Code:
bool cChunk::UnboundedRelGetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta, NIBBLETYPE & a_BlockLight, NIBBLETYPE & a_BlockSkyLight) const
?

Thanks
Reply
Thanks given by:


Messages In This Thread
Get light from chunk - by mgueydan - 09-08-2013, 09:08 PM
RE: Get light from chunk - by xoft - 09-09-2013, 01:02 AM
RE: Get light from chunk - by mgueydan - 09-11-2013, 01:08 AM
RE: Get light from chunk - by xoft - 09-11-2013, 01:24 AM
RE: Get light from chunk - by mgueydan - 09-11-2013, 02:02 AM
RE: Get light from chunk - by xoft - 09-11-2013, 03:54 PM



Users browsing this thread: 1 Guest(s)