There’s a setting in the material details that may help:
I’m not sure if that will actually help, but it may point you in the right direction. If it’s possible, try changing the priority. I’m 90% sure all post-processing happens after the base post processing pass, but you never know.
Actually, maybe this will help:
try changing your sample texture from PostProcessInput0 (which is after the AA) to Base Colour or Diffuse Colour. I’m pretty sure those happen before AA
As for scaling luminance, I don’t even know what that means (I am not smart). If you’re wanting to change the bias at which the HalfTone swaps between black and white, that’s the scalar value you currently have set to 0.1 in the ‘b’ input of the if statement. setting that to 0.5 would be a ‘balanced’ halftone.
if you’re trying to avoid the eye adaptation for the halftone, then setting the first screenshot to ‘before tonemapping’ would help a lot.
Base Colour or Diffuse Colour is a properties of objects, they are not respect lighting. Blendable Priority is used in case of multiple post shader effects, I have only one.
So far I’ve managed to improve result by adding Screen Percentage (200) and increasing size of dots 2 times (that make them same size after scaling down) that also requires AA to be switched to FXAA.
Awesome effect!
One thing you could do to improve to accuracy of the reproduction would be to actually sample the scene texture at the lower resolution of the halftone pattern. It looks great but you can also tell that it is kind of rendering on top of the scene when you look at the thin dark shadow details. In real halftones those areas look more like a cluster of the random sphere sizes straddling the border.
One way to do this would be to sample using the ‘mosaicUVs’ function (look in engine content in content browser for some reason that one wasn’t exposed to the search library) where the mosaic size matches the number of dots. The trick to making it work seamlessly is that you will have to get the value of the neighbor pixel cells and also include their distance calculation so they can blend seamlessly. It will be a bit more expensive, about as expensive as an outline post process.
and there are obvious places where it could be improved. i think i messed up some contrast areas, like the values are too uniform until you get to the extremes.
@Construc_
Yep I’ll publish a shader. I just need time to finish it. And it’s too big now to put it on screenshot (but still fast), so today I need time to sleep. -_-