Skip to content

An OpenGL shader viewer that updates as you edit your shaders

License

Notifications You must be signed in to change notification settings

MildRacc/shadershader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShaderShader

A minimal live shader editor written in Rust using GLIUM.

What is it?

ShaderShader is a simple shader playground similar to ShaderToy. It provides a full-screen canvas where you can write and test GLSL fragment shaders in real-time.

Features

  • Live shader reloading - changes appear as you write
  • Automatic shader compilation
  • Compatible with basic ShaderToy shaders that use iTime and iResolution
  • No manual compilation needed

Uniforms

ShaderShader provides two uniforms:

  • float iTime - elapsed time in seconds
  • vec3 iResolution - window resolution (width, height, aspect ratio)

Usage

Any ShaderToy shader that only uses iTime and iResolution will work out of the box. Just drop your fragment shader code into ShaderShader and it will automatically compile and display.

Flags:

  • -f <path> // Fragment shader path (optional)
  • -v <path> // Vertex shader path (optional)

If you do not include the fragment or vertex flags, you will be prompted in the command-line to enter the paths.

Requirements

  • Rust
  • GLIUM

About

An OpenGL shader viewer that updates as you edit your shaders

Resources

License

Stars

Watchers

Forks

Packages

No packages published