https://github.com/weakknight/shader_toy_playground
a shadertoy shader playground based on rust language
https://github.com/weakknight/shader_toy_playground
Last synced: about 1 month ago
JSON representation
a shadertoy shader playground based on rust language
- Host: GitHub
- URL: https://github.com/weakknight/shader_toy_playground
- Owner: WeakKnight
- Created: 2018-10-24T07:53:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-12T08:36:13.000Z (over 6 years ago)
- Last Synced: 2025-03-29T21:11:19.611Z (about 2 months ago)
- Language: Rust
- Homepage:
- Size: 605 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# An image shader playground like shadertoy
## Usage
Write your shadertoy shader into playground.glsl with glsl syntax,
The environment provides some uniform variables which also provided by shadertoy like iMouse, iResolution, iTime
You can write code just like this or simply copy one intriguing shader artwork from shadertoy
```glsl
void mainImage( out vec4 fragColor, in vec2 fragCoord )
{
// Normalized pixel coordinates (from 0 to 1)
vec2 uv = fragCoord/iResolution.xy;// Time varying pixel color
vec3 col = 0.5 + 0.5*cos(iTime+uv.xyx+vec3(0,2,4));// Output to screen
fragColor = vec4(col,1.0);
}
```## Roadmap
live editor(based on IMGUI),
more uniform(iTimeDelta, iChannel, and so on),
Buffer,
Sound## Screen Shot

Default Shadertoy shader

This Image uses the shader made by Inigo Quilez