Correctly handle light strength close to light source
This commit is contained in:
parent
860080ada3
commit
ca43e6f8a5
|
@ -324,9 +324,9 @@ class Program
|
|||
{
|
||||
strength /= 2;
|
||||
}
|
||||
strength = Math.Min(1.0f, strength);
|
||||
|
||||
var c = light.color * strength;
|
||||
c = Vector3.Min(Vector3.One * 255, c);
|
||||
lightmap.AddLight(0, x, y, (byte)c.X, (byte)c.Y, (byte)c.Z);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue