mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-07-11 14:48:21 +00:00
Add RmlUi
This commit is contained in:
@@ -1498,13 +1498,13 @@ int LivingEntity::getLightColor(float a)
|
||||
|
||||
for( int xt = xmin; xt <= xmax; xt++ )
|
||||
{
|
||||
float tilexmin = max(static_cast<float>(xt), bb->x0);
|
||||
float tilexmax = min(static_cast<float>(xt + 1), bb->x1);
|
||||
float tilexmin = max(static_cast<float>(xt), static_cast<float>(bb->x0));
|
||||
float tilexmax = min(static_cast<float>(xt + 1), static_cast<float>(bb->x1));
|
||||
float dx = tilexmax - tilexmin;
|
||||
for( int yt = ymin; yt <= ymax; yt++ )
|
||||
{
|
||||
float tileymin = max(static_cast<float>(yt), bb->y0);
|
||||
float tileymax = min(static_cast<float>(yt + 1), bb->y1);
|
||||
float tileymin = max(static_cast<float>(yt), static_cast<float>(bb->y0));
|
||||
float tileymax = min(static_cast<float>(yt + 1), static_cast<float>(bb->y1));
|
||||
float dy = tileymax - tileymin;
|
||||
|
||||
float dxdyarea = dx * dy * totVol2;
|
||||
@@ -1513,8 +1513,8 @@ int LivingEntity::getLightColor(float a)
|
||||
|
||||
for( int zt = zmin; zt <= zmax; zt++ )
|
||||
{
|
||||
float tilezmin = max(static_cast<float>(zt), bb->z0);
|
||||
float tilezmax = min(static_cast<float>(zt + 1), bb->z1);
|
||||
float tilezmin = max(static_cast<float>(zt), static_cast<float>(bb->z0));
|
||||
float tilezmax = min(static_cast<float>(zt + 1), static_cast<float>(bb->z1));
|
||||
float dz = tilezmax - tilezmin;
|
||||
|
||||
float frac = dxdyarea * dz;
|
||||
|
||||
Reference in New Issue
Block a user