GithubHelp home page GithubHelp logo

mbrukman / shadered Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dfranx/shadered

0.0 1.0 0.0 129.61 MB

Lightweight, cross-platform & full-featured desktop IDE for HLSL and GLSL shaders

Home Page: https://shadered.org/

License: MIT License

C++ 64.45% C 32.51% HLSL 0.69% GLSL 1.14% CMake 0.94% Shell 0.27%

shadered's Introduction

SHADERed

SHADERed is a lightweight tool for creating and testing HLSL and GLSL shaders. It is easy to use, open source, cross-platform (runs on Windows & Linux - HLSL shaders work on both OSes) and -frequently updated with new features.

Features

Shader debugger

Shader debugger is the newest addition to SHADERed. It is simple to use - you just pause the preview and select the pixel that you are interested in. After starting the debug process, you will be able to:

  • step through your shader code line by line
  • place breakpoints
  • see list of all variables and their values

Compute & geometry shaders

You are not limited to vertex and pixel shaders. SHADERed also has support for compute & geometry shaders. To use GS, enable it in the shader pass' properties and set the path to your shader. You can create advanced animations and effects using geometry shaders.

You can also add compute passes alongside normal shader passes:

Plugin API

You can develop your own SHADERed plugins (which I currently don't suggest since I still need to change a lot of things) or download and install some plugins. To see the plugin API's potential, check out:

You can download them through the shadered.org website too.

See changes instantly

There are different ways to recompile your shaders. You can press F5 to manually recompile your shader, make it recompile shaders on file modify event (which then allows you to use external editors) or make it recompile changed and nonsaved shaders every 200ms:

Render states

You can modify rasterizer, blend and depth-stencil states. Using these states you can: turn on wireframe mode, disable depth test, use stencil buffer, disable culling, custom blending, etc... All these things help you achieve even more advanced effects.

3D models, textures (2D, 3D, cubemaps) & audio files

You can add music and create amazing visualizers!

Custom 3D models can also be easily added to the scene. You can also use built-in geometry objects such as cubes, spheres, planes, full screen quads, etc...

Load textures from files and bind them to your shader. SHADERed also supports cubemaps & 3D textures.

Render textures

You can render your scene to render textures. You can bind multiple render textures to one shader pass. This can help with creating G-Buffer and similar things more easily. You can modify these render texture properties: size, format & clear color

Shader input variables

You can create your own variables and edit their values in real time. SHADERed also comes with lots of built-in 'system' shader variables (elapsed time, window size, various view matrices, etc...). You can also change shader variable value only for a specific 3D object - no programming required.

Zooming in & pausing

Do you need to zoom in on an area of your shader output? You can do that by holding ALT and selecting the area you want to zoom in. This can be useful when developing antialiasing shaders. It is also possible to pause the time


Shader made by The Art Of Code

And many more

Instancing, buffers, audio shaders, ability to have more than one camera, shader macros, pausing time, input layout/vertex attribute manager, export as image and image sequence, variable pointers, etc...

You can also check this list too: link.

Supporters

Supporter(s):

Support

Support the development of this project on Patreon:

You can support the development of this project via PayPal: Buy now with PayPal

My e-mail address for businesses (or if you just want to contact me): contact at shadered dot org

Binaries

You can download precompiled binaries through the Releases page or you can use the shadered.org website.

Install using Scoop (Windows)

On Windows, you can use Scoop to install SHADERed:

scoop bucket add extras
scoop install shadered

Install using Flatpak (Linux)

SHADERed is available on Flathub. After setting up Flatpak, you can install it by entering the following commands in a terminal:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install org.shadered.SHADERed

Note that the Flatpak version runs in a sandbox and some features may not work correctly yet. Please report Flatpak-specific issues here.

Building

First clone the project & submodules:

git clone https://github.com/dfranx/SHADERed.git
cd SHADERed
git submodule update --init

Linux

Install all the libraries that are needed:

# Ubuntu
sudo apt install libsdl2-dev libsfml-dev libglew-dev libglm-dev libgtk-3-dev
# Fedora
sudo dnf install SFML-devel glm-devel glew-devel SDL2-devel gtk3-devel

Build:

cmake .
make

NOTE: If you dont have SFML 2.5 installed on your machine, run these commands:

cmake -DUSE_FINDSFML=ON .
make

If you would like to perform an out-of-source build, do the following:

mkdir build
cd build
cmake .. # or, if SFML 2.5 is not installed, cmake -DUSE_FINDSFML=ON ..
make

Run:

./bin/SHADERed

macOS

Install all the libraries that are needed:

brew install sdl2 sfml glew glm

Build:

mkdir build
cd build
cmake ../
make -j8

Note: If you're building on a macOS version prior to 10.15 (Catalina) you may need to update Xcode and create a symlink for the SDK:

ln -s "$(xcrun --sdk macosx --show-sdk-path)" "$(xcrun --sdk macosx --show-sdk-platform-path)/Developer/SDKs/MacOSX10.15.sdk"

Run:

./bin/SHADERed

Windows

  1. Install SDL2, SFML, GLEW & GLM through your favourite package manager (I recommend vcpkg)
  2. Run cmake-gui and set CMAKE_TOOLCHAIN_FILE variable
  3. Press Configure and then Generate if no errors occured
  4. Open the .sln and build the project!

Tutorial

Don't know how or where to start? The debugger is confusing? Want to create your own shader or custom SHADERed theme? Visit TUTORIAL.md to see detailed steps on how to do these things.

Used by

Screenshots

Shader made by The Art Of Code

Send your own screenshots here!

Dependencies

This project uses:

Some of the examples in the examples directory were taken from AMD's Render Monkey, so credits to AMD.

LICENSE

SHADERed is licensed under MIT license. See LICENSE for more details.

shadered's People

Contributors

dfranx avatar calinou avatar bagobor avatar curioustommy avatar ctrlcctrlv avatar seanballais avatar tanis2000 avatar fnky avatar jarveson 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.