I started texturing my model and I noticed that all the procedural textures I made by plugging them into Emission and backing it using "Emit" have weird lines and dots. These artifacts do not happen if I bake with 1 sample.
For example, here is my node setup:
However, when I bake the texture I get this:
These are my baking settings
The UVs are correct, there is no overlap.
I tried changing the margin, swapping Viewer by proper Emission, copying the object to the new file and baking there, nothing helped.
Any ideas what is causing this and how it can be fixed?
Edit: I tried baking the same material on default cylinder in new file, the same artifact occurs. Baking a default material with "Combined" settings does not produce the lines, so it is something to do with emission.
Tried on different versions (2.82a, 2.83.3 and 2.83.5) they give the same result.
I found a way of baking masks without the artifacts, if I plug it in roughness input of a shader (like Principled BSDF) and bake with "Roughness" setting, it gives a correct result.