-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Implement HalftoneEffect #588
Comments
I'd like to pick this up if possible, seems like an interesting one :) |
Ok, thanks for the help! |
Just checking in: would you like to stay assigned to this ticket? |
Hi @vanruesc, sorry for the radio silence! Yes I would still like to be assigned, my free time has been eaten by my day job but currently I have the shader compiling, and am getting my head around the modifications required, particularly sampling the color texture at multiple points. |
No worries! Take your time. I just took another look at the halftone shader in three and have some tips:
Sampling at custom coordinates can be done like this: |
Thanks for the pointers! One thing I was wondering about actually was if there's a way to assign to the output colour directly for debug purposes? For example, if I wanted to see an output of the pass directly without it being composited in the pipeline. |
No, effects are incomplete shaders after all and If you want to render non-color data, do this: |
Cool, thank you! |
Description
Implement a
HalftoneEffect
(DotScreenEffect).References:
Tasks
HalftoneEffect
.halftone
demo.Implementation Details
The text was updated successfully, but these errors were encountered: