Collection of many open source shaders(GLSL, HLSL, CG) in popular open source game development and rendering engines and public repositories. Aim is to have a common index of shader snippets and algorithms for educational reference while developing games and applications.
- Unity3D
- Built-in shaders - version: 2020.2.2f1 - https://unity3d.com/get-unity/download/archive
- Graphics Pipelines - Updated: Jan 2021 - https://github.com/Unity-Technologies/Graphics
- Unreal Engine
- Updated: Jan 2021
- https://github.com/EpicGames/UnrealEngine/tree/release/Engine/Shaders
- Godot
- G3D
- g3d, updated: 2015
- Deep G-buffer, updated: 2014
- https://sourceforge.net/p/g3d/code/HEAD/tree/
- three.js
- Updated: Jan 2021
- https://github.com/mrdoob/three.js
- Babylon.js
- Updated: Feb 2021
- https://github.com/BabylonJS/Babylon.js/tree/master/src/Shaders
- filament by google
- Updated: Feb 2021
- https://github.com/google/filament/tree/main/shaders/src
- playcanvas
- Blend4Web
- Updated: Feb 2021
- https://github.com/TriumphLLC/Blend4Web/tree/master/shaders
- inviwo:
- Volume rendering framework
- Updated: Aug 2020
- https://github.com/inviwo/inviwo/tree/master/modules
- ray tracing renderer:
- Full ray tracing over three.js
- Updated: Jan 2021
- https://github.com/hoverinc/ray-tracing-renderer/tree/master/src/renderer/glsl
- StochasticScreenSpaceReflection:
- wisdom shaders:
- ssdo_webgl: https://github.com/quentinplessis/ssdo_webgl
- GDQuest godot shaders: (Feb 2021) https://github.com/GDQuest/godot-shaders/tree/master/godot/Shaders
Sources at the top of the files.
- Inigo Quilez articles: https://iquilezles.org/www/index.htm#
- Demofox blog: https://blog.demofox.org/ for Programming, Graphics, Gamedev, Exotic Computation, Audio Synthesis Menu
- Catlike Coding: https://catlikecoding.com/unity/tutorials/ for Unity Rendering tutorials.
- Alan Zucconi tutorials: https://www.alanzucconi.com/
- Manohar Vanga blog: https://sighack.com/
- 3D Game Shaders For Beginners: https://lettier.github.io/3d-game-shaders-for-beginners/index.html
- The book of shaders: https://thebookofshaders.com/
- Unity3D-CG-programming: https://github.com/przemyslawzaworski/Unity3D-CG-programming
- Package of pixel shaders intended for old school emulators: https://github.com/libretro/common-shaders
- awesome-creative-coding: https://github.com/terkelg/awesome-creative-coding
- Unity Shaders book: https://github.com/candycat1992/Unity_Shaders_Book/tree/master/Assets/Shaders
- Blender materials: https://github.com/sambler/osl-shaders
- Unity shaders: https://github.com/QianMo/Awesome-Unity-Shader
- Curated list of computer graphics tutorials and resources: https://github.com/ericjang/awesome-graphics
- https://shadertoy.com
- Open in Jetbrains Rider with Unity support for (some) hlsl syntax highlighting and navigation.
- See the specific license in each directory before copying code.
- All copyright and credits belong to the respective authors.