EmbeddingGemma 2: an open, lightweight multimodal embedding model
deepmind.google·6d ago

TL;DR
A Voronoi-diagram shader was developed for a music video background, but debugging revealed performance issues on one computer. Adding a fractional part to the calculations resolved the stuttering animation.
✦ Why It Matters
Experiment with fractional calculations in your shaders to improve performance and visual quality.
Key Takeaways
How It Works
The shader generates a Voronoi diagram by calculating distances from pixels to random centers, creating distinct visual cells. It uses a noise function to add randomness, enhancing the organic appearance of the diagram.
The fract function was initially used to obtain fractional values, but it caused stuttering on specific hardware due to driver miscompilation.
Related