mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 18:44:05 +09:00
minor comment update
This commit is contained in:
@@ -622,7 +622,7 @@ object LightmapRenderer {
|
|||||||
*/
|
*/
|
||||||
fun darkenColoured(data: Color, darken: Color): Color {
|
fun darkenColoured(data: Color, darken: Color): Color {
|
||||||
// use equation with magic number 8.0
|
// use equation with magic number 8.0
|
||||||
// should draw somewhat exponential curve when you plot the propagation of light in-game
|
// this function, when done recursively (A_x = darken(A_x-1, C)), draws exponential curve. (R^2 = 1)
|
||||||
|
|
||||||
return Color(
|
return Color(
|
||||||
data.r * (1f - darken.r * lightScalingMagic),//.clampZero(),
|
data.r * (1f - darken.r * lightScalingMagic),//.clampZero(),
|
||||||
|
|||||||
Reference in New Issue
Block a user