Code Monkey home page Code Monkey logo

shader-editor's Introduction

Shader Editor

This project is a WGSL online editor and compiler based on WebGPU/Emscripten and Dawn. Users could write shaders to do the pixel-level operations. During each frame, different input uniforms are fed into shaders to utilise mouse, time and texture information. After logging in, users could save shaders and upload textures.

Tested with Chrome Dev (version 106.0.5231.2) with the --enable-unsafe-webgpu flag.

Dependences

  • Emscripten: version 3.1.15
  • Node.js: version 14.18.2
  • MongoDB: version 4.4.13

Inspired by (and derived from) the following examples

Demo

How to run locally

$ git clone https://github.com/nanovis/Shader-Editor.git
$ cd Shader-Editor/out
$ npm install
$ cd ../vs_editor
$ npm install
$ cd .. && make serve

Access http://localhost:8080 on Chorme Dev and access chrome://flags to enable --enable-unsafe-webgpu.

Todo:

  • Provide an interface for users to create uniform buffers
  • Shaders' distributed version control
  • Simultaneous editing by multiple people
  • Shader sharing and publishing
  • Register email verification
  • ...

License

Shader Editor is licensed under the MIT License, see LICENSE for more information.

shader-editor's People

Contributors

donggangjia avatar rocky43007 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

shader-editor's Issues

Can't run the project

when I try to make serve it gives me this error:
em++ -Iinc -Ilib/glm -Wall -Wformat -Os -s USE_WEBGPU=1 -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 -s DISABLE_EXCEPTION_CATCHING=1 -s EXIT_RUNTIME=1 -s ASSERTIONS=0 -s FILESYSTEM=1 -s --use-preload-plugins -s USE_SDL=2 -s USE_LIBJPEG=1 -s USE_SDL_IMAGE=2 -s SDL2_IMAGE_FORMATS='["bmp","png","jpg"]' -c -o main.o main.cpp make: em++: No such file or directory make: *** [<builtin>: main.o] Error 127

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.