Desired result:
Basically what I want to achieve is procedural square shape with ability to blur edges with similar effect to Gaussian blur.
I'm aware of Cycles limitations regarding blur nodes, and also I'm familiar with method to blur texture by noise. This case could be different as I want to use this shape further in my node setup.
What I have so far:
Results:
Node setup for the first example:
Overview and problems:
This is desired result for "blur" effect. Problem with this one is if I change Color Ramp to Constant shape has still rounded corners. Also with bigger scale (Scale - 2 and Color Ramp Black position - 1) it looks like this:
Sadly shapes on edges aren't tiles, after scaling (and applying) mesh they are just white stripes.
Another problem is control over size of this shape.
- This is just ok result. Nothing to add. Maybe only painful control.
- This is Box blur effect, only upside of it is that it could be achieved only by changing Color Ramp interpolation to Linear from Constant (pt. 2).
The biggest problem here is that despite I can have the shape/effect I want, control over them (and the fact that they are separated setups) is horrible. For example - scaling from really small square to big one touching edges involves changing Scale in every Mapping node and also correcting Color Ramp.