How to disable antialiasing in rendered image? #640
-
|
I've been trying to completely disable antialiasing in pygfx, without much success. The problem is illustrated by running the wgpu-py and the pygfx hello-triangle examples, producing different behaviour: I would like to reproduce the wgpu-py behaviour by modifying the pygfx example, could anyone help me on how to achieve that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
I think Context: Pygfx renderes to an offscreen texture that (if you have a non-hidpi screen) is twice as large. When rendering that (larger) texture to screen, the data is smoothed. This is known as FSAA (full-screen antialiasing). |
Beta Was this translation helpful? Give feedback.
-
|
Oh, I just realized that even with it set to 1, it will perform a wee bit of smoothing, so it will produce a different result. As it happens, I have an open PR #638 that will allow turning off all smoothing in the final step. |
Beta Was this translation helpful? Give feedback.
Oh, I just realized that even with it set to 1, it will perform a wee bit of smoothing, so it will produce a different result. As it happens, I have an open PR #638 that will allow turning off all smoothing in the final step.