Skip to content

Add reflector resolutionScale factor to webgl mirror example#31692

Merged
Mugen87 merged 3 commits into
mrdoob:devfrom
WestLangley:dev-webgl_mirror_resolution
Aug 21, 2025
Merged

Add reflector resolutionScale factor to webgl mirror example#31692
Mugen87 merged 3 commits into
mrdoob:devfrom
WestLangley:dev-webgl_mirror_resolution

Conversation

@WestLangley

@WestLangley WestLangley commented Aug 20, 2025

Copy link
Copy Markdown
Collaborator

I noticed that scaling by DPR was perhaps overkill in this example, and it seemed a bit jittery when resizing the window.

Also, I see ReflectorNode has a resolutionScale property.

The change in this PR seems like a reasonable first step. It may even be sufficient.

@WestLangley WestLangley added this to the r180 milestone Aug 20, 2025
Comment thread examples/webgl_mirror.html Outdated
@WestLangley WestLangley changed the title Add reflector resolution factor to webgl mirror example Add reflector resolutionScale factor to webgl mirror example Aug 20, 2025
Comment thread examples/webgl_mirror.html Outdated
Comment thread examples/webgl_mirror.html Outdated
@Mugen87 Mugen87 merged commit 4dc35c0 into mrdoob:dev Aug 21, 2025
8 checks passed
@mrdoob

mrdoob commented Aug 21, 2025

Copy link
Copy Markdown
Owner

This is how it looks like on my screen now... 😕

Screenshot 2025-08-21 at 6 09 58 PM

@Mugen87

Mugen87 commented Aug 21, 2025

Copy link
Copy Markdown
Collaborator

There was a typo^^: 3c3cf90

@WestLangley WestLangley deleted the dev-webgl_mirror_resolution branch August 21, 2025 10:52
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.

3 participants