← All resources

Procedural Pool Balls

Auto-discovered

Blog Intermediate

Daniel Pokladek

Visit resource ↗

Description

Shader tutorial article by Daniel Pokladek on drawing procedural pool balls with signed distance fields in Unity. The URL is a single blog post with HLSL snippets, Shader Graph screenshots, and a linked GitHub sample project.

It introduces SDF basics, then builds an unlit URP shader: horizontal stripe, number circle with front-and-back UV fixups, atlas-based SDF numbers, and smoothstep edges. Examples cover 8-ball, British, and carom-style looks from adjustable properties rather than unique textures per ball.

Intended for intermediate Unity shader learners who know UVs and material properties. Prior SDF reading helps, but the article explains the applied steps.

Free HTML article dated March 2026, with HLSL and Shader Graph paths and project files in the linked billiards-ball repository. Edit the shader alongside the text.

Useful for learning practical 2D SDF composition in a readable game-art example that stays resolution-independent across ball sizes.