mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
collision detection and CCD: Not exactly fixed but it works good enough
Former-commit-id: 3feb9b1156fc941390b4efe4c1540ed4c5dbd109 Former-commit-id: 8c97b0ade765731800ef09b722e0742e44443338
This commit is contained in:
@@ -488,7 +488,7 @@ object LightmapRenderer {
|
||||
* @param brighten (-1.0 - 1.0) negative means darkening
|
||||
* @return processed colour
|
||||
*/
|
||||
fun brightenUniform(data: Int, brighten: Float): Int {
|
||||
fun alterBrightnessUniform(data: Int, brighten: Float): Int {
|
||||
val modifier = if (brighten < 0)
|
||||
constructRGBFromFloat(-brighten, -brighten, -brighten)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user