mirror of
https://github.com/minetest/minetest.git
synced 2025-02-17 10:23:47 +01:00
GenericCAO: Fix dark model below y = 0
Move point at which light is sampled up to 0.5 nodes above foot level, to avoid that point sometimes passing into the node below causing the model to go dark.
This commit is contained in:
@ -946,7 +946,7 @@ void GenericCAO::updateLightNoCheck(u8 light_at_pos)
|
|||||||
|
|
||||||
v3s16 GenericCAO::getLightPosition()
|
v3s16 GenericCAO::getLightPosition()
|
||||||
{
|
{
|
||||||
return floatToInt(m_position, BS);
|
return floatToInt(m_position + v3f(0, 0.5 * BS, 0), BS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GenericCAO::updateNodePos()
|
void GenericCAO::updateNodePos()
|
||||||
|
Reference in New Issue
Block a user