fix(simulation): align LCC layers in PlayCanvas world
This commit is contained in:
@@ -63,11 +63,29 @@ test("PlayCanvas owns the realtime scene graph without an iframe or React entity
|
||||
assert.match(packageDocument, /"playcanvas": "2\.21\.4"/);
|
||||
assert.doesNotMatch(packageDocument, /@playcanvas\/react/);
|
||||
assert.match(runtime, /new Application\(canvas/);
|
||||
assert.match(runtime, /setCanvasFillMode\(FILLMODE_NONE/);
|
||||
assert.match(runtime, /setCanvasResolution\(RESOLUTION_AUTO\)/);
|
||||
assert.match(runtime, /new Asset\([^,]+, "gsplat"/);
|
||||
assert.match(runtime, /camera\.script\?\.create\(CameraControls/);
|
||||
assert.match(runtime, /const HOME_POSITION = new Vec3\(0, 1, 0\)/);
|
||||
assert.match(runtime, /const HOME_FOCUS = new Vec3\(1, 1, 0\)/);
|
||||
assert.match(runtime, /maximum: \{[^}]*lodRangeMin: 0, lodRangeMax: 0, pixelRatio: 2/);
|
||||
assert.match(runtime, /frame\.mouse\[0\] \*= -1/);
|
||||
assert.match(runtime, /new Asset\([\s\S]*"container"/);
|
||||
assert.match(runtime, /instantiateRenderEntity/);
|
||||
assert.match(runtime, /applyWorldTransform/);
|
||||
assert.match(runtime, /setLayerWorldTransform/);
|
||||
assert.match(runtime, /PLAYCANVAS_X_180_TRANSFORM/);
|
||||
assert.match(runtime, /ensureCollision/);
|
||||
assert.match(runtime, /app\.root\.addChild/);
|
||||
assert.match(runtime, /dispose\(\)/);
|
||||
assert.doesNotMatch(`${runtime}\n${viewport}`, /iframe|<GSplat/);
|
||||
assert.match(viewport, /Collision недоступен/);
|
||||
assert.match(viewport, /Для этой сборки collision GLB не был запрошен/);
|
||||
assert.match(viewport, /<Select[\s\S]*Качество Gaussian-сцены/);
|
||||
assert.match(viewport, /Максимум/);
|
||||
assert.match(viewport, /runtimeRef\.current\?\.home\(\)/);
|
||||
assert.match(viewport, /Настройки системы координат/);
|
||||
assert.match(viewport, /Инверсия визуального слоя/);
|
||||
assert.match(viewport, /Инверсия collision-слоя/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user