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

Examples: Add Pixel Frustum Alignment #25140

Merged
merged 3 commits into from
Dec 16, 2022
Merged

Conversation

zalo
Copy link
Contributor

@zalo zalo commented Dec 14, 2022

I noticed that the recent pixelated rendering example ( #24873 ) wasn't aligning its orthographic view frustum to the pixel grid when panning, so this PR adds that option to the example.

Gets rid of those nasty aliasing artifacts:
PixelPerfectPanning

PixelPerfectPanning2

You can try it at: https://raw.githack.com/zalo/three.js/feat-pixel-alignment/examples/webgl_postprocessing_pixel.html

(Also please let me know if there is a more elegant way of grabbing the camera's world rotation bases and position.)

@Mugen87 Mugen87 added this to the r148 milestone Dec 14, 2022
@Mugen87
Copy link
Collaborator

Mugen87 commented Dec 14, 2022

/ping @KodyJKing

@Mugen87 Mugen87 merged commit 1c8f595 into mrdoob:dev Dec 16, 2022
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.

2 participants