Skip to content

[compat-sync] Back light.setEnabled + engine Version; sync to BJS 958a8db#401

Merged
ryantrem merged 4 commits into
masterfrom
compat-sync/scheduled-2026-07-10-56073
Jul 17, 2026
Merged

[compat-sync] Back light.setEnabled + engine Version; sync to BJS 958a8db#401
ryantrem merged 4 commits into
masterfrom
compat-sync/scheduled-2026-07-10-56073

Conversation

@babylon-compat-sync

Copy link
Copy Markdown
Contributor

Automated sync of @babylonjs/lite-compat against the latest Babylon.js and Babylon Lite changes,
produced by the update-compat-layer skill.

Synced against BJS commit: 958a8dbed4e263d412ee9255ae747299043de19f

Validation (run independently by the pipeline)

  • ✅ compat unit tests
  • ✅ compat typecheck

Changed files

  • ackages/babylon-lite-compat/COMPAT-STATUS.md
  • packages/babylon-lite-compat/src/engine/engine.ts
  • packages/babylon-lite-compat/src/lights/lights.ts
  • packages/babylon-lite-compat/tests/engine-scene-api.test.ts
  • packages/babylon-lite-compat/tests/lights.test.ts

Validation passed. Please review the wrapper changes and the updated COMPAT-STATUS.md before merging.

Opened as a draft by the compat-sync pipeline. Review and mark ready when satisfied.

@babylon-compat-sync babylon-compat-sync Bot added automation compat Missing or broken feature in the compatibility layer (@babylonjs/lite-compat) labels Jul 10, 2026
@bjsplat

bjsplat commented Jul 10, 2026

Copy link
Copy Markdown

📋 parity — Test Report

View full Playwright report

Build 20260710.4 · merge @ f91d4c7

@ryantrem
ryantrem marked this pull request as ready for review July 16, 2026 23:55
Copilot AI review requested due to automatic review settings July 16, 2026 23:55
@ryantrem
ryantrem enabled auto-merge (squash) July 16, 2026 23:55
@bjsplat

bjsplat commented Jul 16, 2026

Copy link
Copy Markdown

Lite Playground - Static Site

Open deployed site

Build 20260716.13 - merge @ be9f4f0

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the @babylonjs/lite-compat compatibility layer to match Babylon.js commit 958a8db, restoring Light.setEnabled(...) behavior and adding Babylon.js-style AbstractEngine.Version / AbstractEngine.NpmPackage statics.

Changes:

  • Add AbstractEngine.Version / AbstractEngine.NpmPackage statics and corresponding unit coverage.
  • Implement Light.intensity proxying + Light.setEnabled(...) by parking logical intensity and zeroing Lite intensity while disabled.
  • Update compat status documentation and add dedicated light toggle tests.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/babylon-lite-compat/COMPAT-STATUS.md Updates sync SHA/date and marks light.setEnabled(false) + engine version statics as supported.
packages/babylon-lite-compat/src/engine/engine.ts Adds AbstractEngine.Version / NpmPackage statics backed by Lite VERSION.
packages/babylon-lite-compat/src/lights/lights.ts Implements setEnabled by manipulating Lite intensity while preserving caller-visible intensity.
packages/babylon-lite-compat/tests/engine-scene-api.test.ts Adds assertions for engine version statics on base + subclasses.
packages/babylon-lite-compat/tests/lights.test.ts Adds unit tests validating setEnabled intensity parking/restore behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/babylon-lite-compat/src/engine/engine.ts
Comment thread packages/babylon-lite-compat/src/engine/engine.ts
Comment thread packages/babylon-lite-compat/src/lights/lights.ts
@bjsplat

bjsplat commented Jul 17, 2026

Copy link
Copy Markdown

Lab - Static Site

Open deployed site

Build 20260716.13 - merge @ be9f4f0

… in NpmPackage

Addresses PR review feedback:

- NpmPackage now uses this.Version so subclasses overriding Version are respected.

- Light intensity/setEnabled writes bump the underlying Lite _lightVersion so changes reach the shared lights UBO.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@bjsplat

bjsplat commented Jul 17, 2026

Copy link
Copy Markdown

Lite Playground - Static Site

Open deployed site

Build 20260717.5 - merge @ 2c9c569

@bjsplat

bjsplat commented Jul 17, 2026

Copy link
Copy Markdown

Lab - Static Site

Open deployed site

Build 20260717.5 - merge @ 2c9c569

@ryantrem
ryantrem merged commit 0c23eba into master Jul 17, 2026
12 checks passed
@ryantrem
ryantrem deleted the compat-sync/scheduled-2026-07-10-56073 branch July 17, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation compat Missing or broken feature in the compatibility layer (@babylonjs/lite-compat)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants