← All projects
Project record1 mention
Originally shared on Hacker News

Data-driven 2D SDF rendering system

A data-driven 2D signed-distance-field rendering system built for the author's game, designed so that each scene or object does not require a new shader.

Last shared
01 / The problem

What it addresses

SDF rendering otherwise needs a new shader for each scene or object; making the SDFs data-driven was a big hurdle.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Data-driven 2D SDF rendering system

    A data-driven 2D signed-distance-field rendering system built for the author's game, designed so that each scene or object does not require a new shader.

    Problem: SDF rendering otherwise needs a new shader for each scene or object; making the SDFs data-driven was a big hurdle.

    Posted by @turtledragonfly · Original source ↗

    Source text · @turtledragonfly · · Source ↗

    I built a SDF-based rendering system (2D) for my game, and one of the big hurdles was how to have them be data-driven, rather than needing a new shader for each scene or object.