Halftone shading problem

I downloaded the halftone pattern shader found here, and I’m wondering how I can tweak it to make the halftone pattern unaffected by the object’s size and scale. Here’s an image showing the two issues I’m having.

Here’s the shader nodes that generate the halftone grid. I am not using the Screen Space option.

The fix is to use screen space UVs.

The alternative would be to use Triplanar UVs, though you’ll get stretching any surface that’s not aligned to the world or object axis (depending on if you use world or object aligned triplanar). You can’t use the built in Triplanar node for this, but the short version is you use the world position for the UV, and pick which of the two components to use based on which axis is the “biggest” of the world normal.

If you want it to be object aligned, you just need to change the position and normal vector to be object space, and add a few more nodes at the very start to account for the world scale.

1 Like

Awesome, thanks! I’ll mess with this technique.

The “other” options are… complicated.