Giter Club home page Giter Club logo

webgl-shader-editor's Introduction

WebGL Shader Editor

A rudimentary WebGL fragment shader editor and viewer.

screenshot.png screenshot2.png

Usage

The application requires an HTTP server to function.

Prerequisites

  • The latest version of Node.js. Make sure to install npm too.
  • Basic knowledge of GLSL.

Server Setup

To run the server, you need to run two commands.

Windows

  1. Navigate to the folder containing the server.js file in File Explorer.
  2. Hold down Shift and press right click, it should open the context menu.
  3. If you have permission on the machine to open PowerShell, you should see a 'Open PowerShell window here' option. Click on it to open PowerShell.
  4. Type the commands below into the PowerShell prompt.

MacOS

  1. Click the Spotlight Search button in the menu bar.
  2. Type in 'console.app'.
  3. Open the terminal, and type the commands below into it.

Linux

  1. It varies from distro to distro, but the shortcut to open the terminal is usually Ctrl+Shift+T or Ctrl+Alt+T.
  2. Type the commands below into it.

Commands

Make sure your terminal is in the same directory as the server.js file of the application.

  1. npm install : This installs all the necessary dependencies of the application.
  2. npm start : This starts the HTTP server for the application.

Accessing the App

After the HTTP server is started, go to http://localhost:5501/.

TODO

  • Add GLSL syntax highlighting
  • Add animation capabilities

webgl-shader-editor's People

Contributors

nethe550 avatar

Stargazers

 avatar

Watchers

 avatar

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.