-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Examples: Consider pixel ratio in FXAA demo for fxaa uniforms #15636
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
Conversation
|
By the way, the SMAA example also uses the three.js/examples/webgl_postprocessing_smaa.html Lines 87 to 102 in 02b5ba0
|
|
I've already supposed such a change here in order to handle pixel ratio in a more consistent way: #14340 Sry, I don't want to be annoying with this PR but I'm convinced we should implement a holistic solution for this issue 😇 |
That makes sense to me. Why did you close #14340? |
|
When a PR is not getting merged over a certain period of time (let's say several weeks) without giving any reasons, I close it. PRs are not always accepted and that's nothing special when contributing to a project. Besides, it's no big deal to reopen them^^. |
|
OK, makes sense. It might be useful to add a comment when closing along the lines of "closing due to lack of interest", for any future archaeologists. |
My comment was intended as a question... This will only be correct if it is consistent with the behavior of the composer. Do you believe it is? |
|
The uniform value should match the resolution of the EffectComposers internal render targets. So if you set the pixel ratio via However, if the example is resized, things break like in other post processing examples because of the reasons I have mentioned in #14340 (since I think your question shows how useful a fix of |
|
How is the user supposed to know when to scale by the pixel ratio, and when the scaling will be handled for the user automatically? Also, you should use the pixel ratio that has been set by |
Ideally, users just set
Done. |
OK. That seems reasonable. Of course, as we know, |
According to @WestLangley's suggestion I have added the pixel ratio to the
resolutionuniform of the FXAA shader.see #15559 (comment)