https://github.com/emackey/slang-playground-samples
A collection of samples for the Slang Playground
https://github.com/emackey/slang-playground-samples
Last synced: 4 months ago
JSON representation
A collection of samples for the Slang Playground
- Host: GitHub
- URL: https://github.com/emackey/slang-playground-samples
- Owner: emackey
- Created: 2025-09-01T22:25:54.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-01T23:41:10.000Z (9 months ago)
- Last Synced: 2025-09-02T01:18:45.462Z (9 months ago)
- Size: 1.98 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slang Playground Examples
This is an unofficial collection of assorted samples written in the [Slang Shading Language](https://shader-slang.org/) that are intended to run directly in the [Slang Playground](https://shader-slang.org/slang-playground/).
If you open this repository with [VSCode](https://code.visualstudio.com/), install the [Slang Extension](https://marketplace.visualstudio.com/items?itemName=shader-slang.slang-language-extension) to run and interact with these samples directly in your editor, even while offline.
## Samples
### Alan's Abstract "Art"
You have to click and drag the mouse all around before this one really gets going.
[](Samples/AlsAbstractArt.slang)
### Alan's Sandbox
Sand, Air, Plant, Fire, and Water, in a sandbox. Sand and water fall in air. Sand sinks in water. Plants grow in water. Fire burns plants. Paint your scene with the mouse.
[](Samples/AlsSandbox.slang)
### IQ's Better Voronoi Edges
The amazing Inigo Quilez demonstrates (originally on Shadertoy) how to calculate Voronoi cells without degenerate edges, by calculating the edge distance.
[](Samples/BetterVoronoiEdges.slang)
### Doomed City
Defend your city. Time for some panicked clicking! And explosions.
[](Samples/DoomedCity.slang)
### IQ's Filtering Procedurals
Inigo Quilez demonstrates (originally on Shadertoy) a method for filtering of procedurally-generated textures.
[](Samples/FilteringProcedurals.slang)
### Holiday Gifts
Don't open until the holidays.
[](Samples/HolidayGifts.slang)
### Life with Trails
Conway's Game of Life, implemented in Slang, with adjustable trail and decay colors. Click and drag to place more life.
[](Samples/LifeWithTrails.slang)
### Mini City
Just a few lines of shader code get you a whole city!
[](Samples/MiniCity.slang)
### Spirals
Lines swirl around while being drawn.
[](Samples/Spirals.slang)
### Wiggle Rings
Some kinda funky fun shader with the wiggles.
[](Samples/WiggleRings.slang)