Harvest the power of the GPU for awesome special effects
summary
Shows how to offload rendering and computation to the GPU using Arcade library and shadertoy.com style GLSL shaders, with concrete numbers: >40,000 bodies in an N‑body demo (~1.6 billion pairwise calcs per frame, ~100 billion/sec) and sprite counts jumping from ~2,000 (CPU/Pygame) to tens of thousands or even millions on GPU. Builds a glowy movable ball and a starfield; shader+Python is under ~50 lines; the N‑body demo runs ~30 fps on a 7‑year‑old GPU.
AI-written summary · about
chapters (23)
- 0:00Intro
- 1:20Outline
- 3:24The oldschool way
- 5:48End body simulation
- 6:16Gravity calculations
- 6:58Shaders
- 7:59Shadertoy
- 8:56Getting a window
- 10:51Adding a shader
- 11:57Writing the shader
- 12:30Normalizing the coordinates
- 13:19Shader
- 16:30Shift
- 16:52Aspect Ratio
- 17:44Circles
- 19:28Python
- 19:49Glory Ball
- 20:07Position and Color
- 21:03Color
- 21:13Uniform
- 22:28Subtraction
- 22:59Python code
- 23:34Shader tutorials
related talks
22mWebGL For More Than Graphics: Is It Possible?
25mArbitrary Computation on the GPU Using WebGL
39mThe Pixel Factory
05mA Brief Intro to GPU Shader Programming in WebGL
59mGraphics Programming with LambdaCube 3D - Part 2 of 2
34mOne simple animation explained
26mCreative experiments with WebGL shaders in JavaScript
41mLuxuries, necessities, and the challenges that remain
