Skip to content

Fix: set texture sampling to POINT in noSmooth() for OpenGL #951#1427

Open
Sumamasonia wants to merge 1 commit into
processing:mainfrom
Sumamasonia:main
Open

Fix: set texture sampling to POINT in noSmooth() for OpenGL #951#1427
Sumamasonia wants to merge 1 commit into
processing:mainfrom
Sumamasonia:main

Conversation

@Sumamasonia

Copy link
Copy Markdown
Contributor

This PR addresses Issue #951. I have updated the noSmooth() method in PGraphicsOpenGL.java to set textureSampling to Texture.POINT. This ensures that textures remain sharp when noSmooth() is called in P2D/P3D renderers, matching the expected behavior.

@catilac catilac left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't making any change in the output. It's still blurry. Can you share screen shots of your result? I'm also curious about some of the code changes you've made.

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