How does one create this effect and be able to control the level of dithering?
-
2$\begingroup$ In the youtube video from which you take this image, the author explains it in the first commentary youtube.com/watch?v=SwGM7bl-wC8 $\endgroup$– thibsertFeb 28, 2020 at 18:33
-
$\begingroup$ Close to this blender.stackexchange.com/questions/143884/… $\endgroup$– lemonFeb 28, 2020 at 18:44
-
$\begingroup$ @thibsert could you elaborate on his instructions? I'm still fairly new to blender so they aren't entirely clear to me. thanks $\endgroup$– iturbinaFeb 28, 2020 at 21:54
2 Answers
For Eevee, the principle is similar to the one used in this answer.
Simply you can change the input parameters and play with the Voronoi texture options.
I've changed few things to the node setting.
Voronoi input is set to camera texture coordinates.
Voronoi changed to 2D and distance to edge.
Colors inverted.
Inputs on the right tuned.
I have written a detailed breakdown of the shader as a medium post. Here is what the result looks like. The .blend file is attached below.
The main idea is to create a map from grayscale to the dithering patterns. Once you have created this, you can use the Diffuse BSDF node to create the shading, which will be mapped to the corresponding patterns.
I use the camera coordinates to create the pixel index.
The pixel index can be turned into different patterns using simple modulo arithmetic. The checkered pattern would be mod(x+y,2). Here is another example.
Once you have all the patterns, create a map from the grayscale to the patterns.
Add them together and use the pattern as the factor input of the Color Mix node.
Left is the Diffuse BSFD only, and right is after the mapping.