https://github.com/rocksdanister/threejs-shadertoy
Run shadertoy shaders using threejs
https://github.com/rocksdanister/threejs-shadertoy
Last synced: 7 months ago
JSON representation
Run shadertoy shaders using threejs
- Host: GitHub
- URL: https://github.com/rocksdanister/threejs-shadertoy
- Owner: rocksdanister
- Created: 2023-05-05T15:27:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-05T15:59:33.000Z (over 2 years ago)
- Last Synced: 2025-01-11T22:17:47.113Z (9 months ago)
- Homepage:
- Size: 1000 Bytes
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# threejs-shadertoy
An experimental project trying to run [shadertoy](https://www.shadertoy.com/) shaders using threejs.### Supported Shadertoy uniforms
- [ ] uniform vec3 iResolution; // viewport resolution (in pixels)
- [ ] uniform float iTime; // shader playback time (in seconds)
- [ ] uniform float iTimeDelta; // render time (in seconds)
- [ ] uniform float iFrameRate; // shader frame rate
- [ ] uniform int iFrame; // shader playback frame
- [ ] uniform float iChannelTime[4]; // channel playback time (in seconds)
- [ ] uniform vec3 iChannelResolution[4]; // channel resolution (in pixels)
- [ ] uniform vec4 iMouse; // mouse pixel coords. xy: current (if MLB down), zw: click
- [ ] uniform samplerXX iChannel0..3; // input channel. XX = 2D/Cube
- [ ] uniform vec4 iDate; // (year, month, day, time in seconds)
- [ ] uniform float iSampleRate; // sound sample rate (i.e., 44100)### More features
- [ ] Scaling: Adjust fragment shader resolution. Can be reduced to improve performance for shaders with less finer details.
- [ ] Post processing: Built in brightness, saturation and other effects.
- [ ] FPS control: Adjust frame-rate. Can be reduced to improve performance for shaders with slow/subtle movement.
- [ ] Playback control: Start/Pause playback.
- [ ] dat.GUI util: Generate dat.gui for shader uniforms.