{
  "id": 7761266,
  "title": "When adding a fractional part to a number fixes your shader",
  "url": "https://urgent.news/2026/09/16/when-adding-a-fractional-part-to-a-number-fixes-your-shader",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-16T10:20:07.000Z",
  "source": {
    "name": "Lobsters",
    "slug": "lobsters",
    "url": "https://crocidb.com/post/when-the-fractional-part-of-a-float-fixes-your-shader/"
  },
  "original_language": "en",
  "account": "On a particular night, the author decided to create a Voronoi-diagram shader for a music video background. Voronoi Noise, a relatively new algorithm for the author, produced mesmerizing geometric and organic patterns. The author implemented the algorithm and was pleased with the result. However, the next morning, the animation on one of the author's computers started stuttering. Intrigued, the author began investigating the issue. After a week of debugging and disassembling shaders, the author discovered the problem lay within the code generating Voronoi centers. The specific lines causing the stutter were related to the fract function call, which seemed to have a continuity issue in Nvidia 40xx drivers. The author sought help from graphics programmer friends but received no assistance. Ultimately, the author resolved the issue and shared the final shader on Shadertoy.",
  "summary": null,
  "key_points": [
    "Author created Voronoi-diagram shader for music video background",
    "Animation stuttered on author's computer the next morning",
    "Issue resolved by fixing fract function call in Nvidia 40xx drivers"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}