Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to set a custom size for a reflector render #30210

Open
Samsy opened this issue Dec 26, 2024 · 0 comments
Open

Ability to set a custom size for a reflector render #30210

Samsy opened this issue Dec 26, 2024 · 0 comments

Comments

@Samsy
Copy link
Contributor

Samsy commented Dec 26, 2024

Description

Currently, the reflector copies the resolution of the renderer on every update :

https://github.com/sunag/three.js/blob/87af669d9f8564bc906216c1c3f0db9cb7582ba0/src/nodes/utils/ReflectorNode.js#L291

Before we could pass options to set the target size directly

https://github.com/mrdoob/three.js/blob/dev/examples/jsm/objects/Reflector.js#L52

Solution

Pass options to set an resizeAutoUpdate: false, and expose the render target so it can be resized manually outside of the reflector

Alternatives

.

Additional context

.

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

No branches or pull requests

1 participant