anuraghazra / ShaderExpo

WebGL Shader Playground.

Home Page:https://anuraghazra.github.io/ShaderExpo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shader Expo

License: GPL v3 GitHub last commit Maintenance

πŸŒ… 🌈

WebGL Shader Playground.

ShaderExpo is purely dependency free shader editor made in Raw WebGL API. Experiment with basic webgl shaders on the fly.

Checkout ShaderExpo Case Study

πŸ“ Features

  • Rich CodeEditor
  • Simple CodeEditor
  • AutoCompletion
  • Live Editing
  • Basic Debugging

Auto Completion

AutoCompletion

Inline Errors

Inline-Errors

Basic Meshes

Basic-Meshes

Texture and Custom OBJ Model Loading

Texture-Model-Loading

Example Shaders

Example-Shaders


πŸ‘” Avialable Uniforms

Name Type Description
uWorldMatrix mat4 I don't know
uViewMatrix mat4 I don't know
uProjMatrix mat4 I don't know
uTime float current frame time
mouse vec2 mouse postion
resolution vec2 canvas width, height
viewPos vec3 camera position
texture sampler2D default diffuse texture

🎲 Third Party Libs

  • Ace

πŸ“ TODO

  • Add 3D Models
  • More Shader Variables
  • Saving Shaders
  • OOP

Contributions are welcome.

Example Shaders are taken from https://glslsandbox.com

⭐ Support the project by giving it a star ⭐

:octocat: Author

Made with ❀️ and JavaScript

About

WebGL Shader Playground.

https://anuraghazra.github.io/ShaderExpo

License:GNU General Public License v3.0


Languages

Language:JavaScript 53.3%Language:GLSL 25.4%Language:HTML 12.1%Language:CSS 9.2%