mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00: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:
parent
d1a130488e
commit
238d752fa3
1 changed files with 1 additions and 1 deletions
|
@ -946,7 +946,7 @@ void GenericCAO::updateLightNoCheck(u8 light_at_pos)
|
|||
|
||||
v3s16 GenericCAO::getLightPosition()
|
||||
{
|
||||
return floatToInt(m_position, BS);
|
||||
return floatToInt(m_position + v3f(0, 0.5 * BS, 0), BS);
|
||||
}
|
||||
|
||||
void GenericCAO::updateNodePos()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue