shader-park/shader-park-core

A JavaScript library for creating real-time 2D and 3D shaders. JS -> Shader. https://shaderpark.com/ https://twitter.com/shaderpark

JavaScript

828

335 commits

updated Oct 5, 2026

See the code

README

Shader Park HeroF Crop2

Build Status NPM version NPM downloads

Shader Park simplifies creating procedural graphics using javascript.
With just a few lines of code, create shaders which are:

  • Animated
  • Interactive
  • 2D or 3D

Alt Text

Try the live editor ✍️

Browse the Interactive Documentation 📖

Build from working Template/Example Projects 🛠️

Join the community on Discord 💬

Easily integrated with:

  • webpages
  • threejs
  • touchdesigner
  • unity (under development)

Explore hundreds of examples

Alt Text

Install

npm install shader-park-core

Usage

See examples on glitch

CLI usage:

npm run toThreeJS my-sculpture.js
npm run toOffline my-sculpture.js
npm run toRawSDF4Meshing my-sculpture.js

For development with SP website:

In shader-park-core repo run npm link or yarn link

In shader-park-website repo run npm link shader-park-core or yarn link shader-park-core

API usage:

The simple cli tools in the converters directory are simple examples of how the API can be used. (TODO, put more examples in readme, and examples folder) For now, explore the available functions in index.js, and see their implementations in the targets directory.

To add new targets:

  1. Implement a class in targets that converts sculpt to the format your target requires (see existing targets for example of available tools for this)
  2. Expose the functions externally in index.js
  3. Implement a basic cli converter, (for now this means just copy-pasting an existing converter and swapping out the single converter function. The boilerplate could be factored out and the cli converters could be automatically generated) and use as a cli tool, or use API directly.
computer-graphics
creative-coding
glsl
gpu
graphics-programming
live-coding
p5js
processing
raymarching
raymarching-distance-fields
real-time
rendering
sdf
shader
shader-park
shaders
shadertoy
signed-distance-field
web
webgl

shader-park/shader-park-core

A JavaScript library for creating real-time 2D and 3D shaders. JS -> Shader. https://shaderpark.com/ https://twitter.com/shaderpark

JavaScript

828

335 commits

updated Oct 5, 2026

See the code

README

Shader Park HeroF Crop2

Build Status NPM version NPM downloads

Shader Park simplifies creating procedural graphics using javascript.
With just a few lines of code, create shaders which are:

  • Animated
  • Interactive
  • 2D or 3D

Alt Text

Try the live editor ✍️

Browse the Interactive Documentation 📖

Build from working Template/Example Projects 🛠️

Join the community on Discord 💬

Easily integrated with:

  • webpages
  • threejs
  • touchdesigner
  • unity (under development)

Explore hundreds of examples

Alt Text

Install

npm install shader-park-core

Usage

See examples on glitch

CLI usage:

npm run toThreeJS my-sculpture.js
npm run toOffline my-sculpture.js
npm run toRawSDF4Meshing my-sculpture.js

For development with SP website:

In shader-park-core repo run npm link or yarn link

In shader-park-website repo run npm link shader-park-core or yarn link shader-park-core

API usage:

The simple cli tools in the converters directory are simple examples of how the API can be used. (TODO, put more examples in readme, and examples folder) For now, explore the available functions in index.js, and see their implementations in the targets directory.

To add new targets:

  1. Implement a class in targets that converts sculpt to the format your target requires (see existing targets for example of available tools for this)
  2. Expose the functions externally in index.js
  3. Implement a basic cli converter, (for now this means just copy-pasting an existing converter and swapping out the single converter function. The boilerplate could be factored out and the cli converters could be automatically generated) and use as a cli tool, or use API directly.
computer-graphics
creative-coding
glsl
gpu
graphics-programming
live-coding
p5js
processing
raymarching
raymarching-distance-fields
real-time
rendering
sdf
shader
shader-park
shaders
shadertoy
signed-distance-field
web
webgl

Project health

Overall

3.1/10

Maintained

0/10

Code review

0/10
OpenSSF Scorecard

Latest release

0.2.8 · May 28, 2024

Releases this year

0

Significant stargazers

Olle Jonsson

427 followers · starred Mar 2022

Eric Zhang

3,249 followers · starred May 2023

Joe Pea

728 followers · starred Sep 2022

mrdoob

25,624 followers · starred Mar 2022