fix: model having wrong turbidity value

This commit is contained in:
minjaesong
2023-07-10 23:14:56 +09:00
parent f0fa5830bd
commit 2b62b4f413
3 changed files with 6 additions and 10 deletions

View File

@@ -82,7 +82,7 @@ object Skybox : Disposable {
val elevationDeg = (it / turbCnt).plus(elevations.first).toDouble()
val elevationRad = Math.toRadians(elevationDeg)
val turbidity = 1.0 + (it % turbCnt) / 100.0
val turbidity = 1.0 + (it % turbCnt) / 2.0
val state = ArHosekSkyModel.arhosek_xyz_skymodelstate_alloc_init(turbidity, albedo, elevationRad.abs())
val pixmap = Pixmap(1, gradSize, Pixmap.Format.RGBA8888)