Implement playable Mac client and rendering validation

This commit is contained in:
shen
2026-09-11 14:58:22 +08:00
parent 1ab68bd06e
commit 374d4165d8
233 changed files with 6546 additions and 284 deletions
+2 -1
View File
@@ -159,6 +159,7 @@ func _test_builder() -> void:
"emitter 1 edge sphere uses surface emission")
_ck(abs(pm1.spread - 180.0) < 0.01, "OUTER emitter uses radial-velocity fallback spread")
_ck(fx._lights.size() == 1, "EffectPlayer built 1 OmniLight3D")
fx.play()
fx._process(0.11)
_ck(fx._lights[0].visible, "SimpleLight becomes visible after start time")
_ck(abs(fx._lights[0].omni_range - 0.06) < 0.02, "SimpleLight range follows TimeEventRange")
@@ -171,7 +172,7 @@ func _test_builder() -> void:
var bezier_mid: Vector3 = fx._position_at(moving_rows, 1.5)
_ck(abs(direct_mid.x - 0.5) < 0.001 and abs(direct_mid.y) < 0.001,
"MOVING_TYPE_DIRECT interpolates in metres")
_ck(abs(bezier_mid.x - 1.25) < 0.001 and abs(bezier_mid.y - 0.5) < 0.001,
_ck(abs(bezier_mid.x - 1.25) < 0.001 and abs(bezier_mid.z + 0.5) < 0.001 and abs(bezier_mid.y) < 0.001,
"MOVING_TYPE_BEZIER_CURVE uses previous control point")
fx.play()
_ck(g0.emitting, "emitter 0 emitting after play() (start_time 0)")