Skip to content

feat(examples): add Camera Frame toggle to portal example#8697

Merged
mvaligursky merged 1 commit into
mainfrom
mv-portal-camera-frame-toggle
May 7, 2026
Merged

feat(examples): add Camera Frame toggle to portal example#8697
mvaligursky merged 1 commit into
mainfrom
mv-portal-camera-frame-toggle

Conversation

@mvaligursky
Copy link
Copy Markdown
Contributor

Adds an optional Camera Frame path to the stencil portal example so it matches direct rendering by default, while still allowing post-processing (stencil + 4x MSAA) to be turned on from the example UI for testing.

Changes:

  • New portal.controls.mjs with a Camera panel and Camera Frame toggle (default off).
  • portal.example.mjs: lazy CameraFrame creation/destruction driven by observer cameraFrame; when enabled, sets stencil and samples and mirrors the camera tone mapping on the frame.

Examples (if updated):

  • examples/src/examples/graphics/portal.example.mjs
  • examples/src/examples/graphics/portal.controls.mjs (new)

@mvaligursky mvaligursky self-assigned this May 7, 2026
@mvaligursky mvaligursky merged commit 2181b75 into main May 7, 2026
8 checks passed
@mvaligursky mvaligursky deleted the mv-portal-camera-frame-toggle branch May 7, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant