Skip to main content
100%

Hex dots shader for unity. From: https://www.reddit.com/r/Unity3D/comments/9h07rh/i_made_a_shader_that_draws_a_bunch_of_dots_in_a/

✓ Published0🌍 Public
Aandybak
Last edited Sep 19, 2018
Created on Sep 19, 2018

A Unity shader renders a grid of animated dots in a hexagonal pattern, with the dot size, count, speed, and top/bottom colors adjustable via shader properties. The fragment shader uses trigonometric functions—cosines of the UV coordinates multiplied by the dot count—to generate intersecting line patterns that form the dots, then thresholds and scales the values to create crisp circular shapes. It blends between the background and foreground colors based on the dot alpha, using the built-in UnityCG.cginc library and a standard transparent pass with alpha blending.

AI-generated description

Similar vizzes