~/talk

Raymarching Shaders with SwiftUI

Talkat try! Swift Tokyo 2025 · 2025-04-09..04-11· [swift]
github:aheze
slides:none on file

SwiftUI code compiles fragment shaders (with a single rectangle vertex) that run per pixel to produce 3D via signed distance functions and ray marching; shapes combine with union/subtraction blends, a 2D Swift bird is extruded to 3D (using an extrude(0) trick) and ray-marched with shadow checks, normals and coloring, all live-coded in a Swift shader beta. The examples render successfully on-screen, code is promised uploaded, and the approach avoids vertex boilerplate.

AI-written summary · about

  1. 0:00Introduction
  2. 2:50What are shaders
  3. 4:58Fragment shaders
  4. 6:46Signed distance fields
  5. 8:30Ray marching
  6. 10:58Live coding shaders
  7. 11:44Red background shader
  8. 12:27Gradient effect steps
  9. 13:15Drawing a circle using signed distance
  10. 13:35Swift logo shader
  11. 16:302D to 3D ray marching
  12. 18:48Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.