mirror of
https://gitlab.com/cc-ru/ocelot/ocelot-desktop.git
synced 2026-01-06 11:12:39 +01:00
Fix hologram rotation smoothing
This commit is contained in:
parent
e36fee71db
commit
a6f04e28f7
@ -148,7 +148,7 @@ class HologramProjectorWindow(val hologramProjectorNode: HologramProjectorNode)
|
||||
mesh.foreach(mesh => {
|
||||
val workspace = hologram.workspace
|
||||
|
||||
val subTick = (System.nanoTime() - workspace.getLastTickNanoTime).toFloat / 1e9f / OcelotDesktop.tpsCounter.dt.min(1e-9f)
|
||||
val subTick = (System.nanoTime() - workspace.getLastTickNanoTime).toFloat / 1e9f / OcelotDesktop.tpsCounter.dt.max(1e-9f)
|
||||
val time = workspace.getIngameTime + subTick.clamp(0, 1)
|
||||
|
||||
var transform = Transform3D.translate(0.5f, 0.5f, 0.5f) *
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user