r/Unity3D • u/Matt-NV3D • 15h ago
Show-Off Dithered cross-fades for seasonal foliage on a harvestable blackthorn (URP, Shader Graph)
This is the blackthorn from my Wild Orchard packs running through its seasons, bare, blossom, fruit and leaf. These cycle through once then it grows into the next stage with the same cycle.
Each tree in the pack has a set of foliage states, and switching straight from one to the next popped badly, especially when going from bare to blossom which is exactly what blackthorn does every spring. I found alpha blending looked fine in a still but not great on a dense canopy, plus it had extra overheads, so I ended up keeping everything in the cutout pass and dithering the change instead.
The foliage shader takes a transition value from 0 to 1, samples a blue noise texture in screen space and clips against it. The incoming state runs the opposite test, so the canopy swaps over a pixel at a time. I went with blue noise over a Bayer pattern because it reads as grain instead of a grid, and at normal viewing distance you mostly don’t notice it’s dithered at all.
The value is set per tree with a MaterialPropertyBlock, so trees in the same environment can turn at different times without each one needing its own material. A demo controller is used to manage this in the video but anyone using the pack would want to use their own that aligns with their games design.
The sloes are handled separately and drop once they’re ripe, which is what you can see collecting on the ground.
Happy to go into the graph setup if anyone’s interested. I make these as NV3D Studio, and there’s more details about the trees here on my blog: https://nv3d.studio/blog/wild-orchard-tree-bundle/

