laurentlb / Shader_minifier
Licence: apache-2.0
Minify and obfuscate GLSL or HLSL code
Projects that are alternatives of or similar to Shader minifier
Lux 2.01 Stars: ✭ 116 (-17.73%)
Mutual labels: glsl
TouchfluidFluids in TouchDesigner and GLSL
Stars: ✭ 126 (-10.64%)
Mutual labels: glsl
Godot3 shadersGodot shaders experiments
Stars: ✭ 135 (-4.26%)
Mutual labels: glsl
Polygon WindWind shader for low poly assets in Unity.
Stars: ✭ 119 (-15.6%)
Mutual labels: glsl
Glsl Solid Wireframedraw wireframes or grids on a solid mesh using a fragment shader
Stars: ✭ 125 (-11.35%)
Mutual labels: glsl
Wisdom ShadersA Minecraft shaderspack. Offers high performance with high quality at the same time.
Stars: ✭ 132 (-6.38%)
Mutual labels: glsl
Godot Motion BlurA motion blur shader for Godot 3.0
Stars: ✭ 115 (-18.44%)
Mutual labels: glsl
ForgeHigh Performance Visualization
Stars: ✭ 140 (-0.71%)
Mutual labels: glsl
Gift porterdollPorterDoll Asset wtih "THE GIFT"
Stars: ✭ 125 (-11.35%)
Mutual labels: glsl
SketchExplorations on cross-hatching, engraving, and similar non-photorealistic rendering.
Stars: ✭ 136 (-3.55%)
Mutual labels: glsl
GlslsmartdenoiseFast glsl deNoise spatial filter, with circular gaussian kernel, full configurable
Stars: ✭ 121 (-14.18%)
Mutual labels: glsl
KrafixGLSL cross-compiler based on glslang and SPIRV-Cross
Stars: ✭ 124 (-12.06%)
Mutual labels: glsl
ShadowsShädows - A Shadows & Lights engine for löve
Stars: ✭ 134 (-4.96%)
Mutual labels: glsl
FutureproofA live editor for fragment shaders, powered by Neovim, WebGPU, and Zig!
Stars: ✭ 117 (-17.02%)
Mutual labels: glsl
DaemonThe Dæmon game engine. With some bits of ioq3 and XreaL.
Stars: ✭ 136 (-3.55%)
Mutual labels: glsl
Unity Lowpoly ShaderUnity Shader for mesh rendering in lowpoly style
Stars: ✭ 116 (-17.73%)
Mutual labels: glsl
Cute Deferred ShadingCute little deferred shading implementation.
Stars: ✭ 129 (-8.51%)
Mutual labels: glsl
Glsl Color SpacesUtility functions to convert between various color spaces in GLSL
Stars: ✭ 141 (+0%)
Mutual labels: glsl
Quark ShadersA repository of GLSL #150 pixel shaders for use with byuu's Higan emulation package.
Stars: ✭ 140 (-0.71%)
Mutual labels: glsl
Bookofshaders GodotBookOfShaders in Godot Shader Language
Stars: ✭ 134 (-4.96%)
Mutual labels: glsl
Shader Minifier
Shader Minifier is a tool that minifies and obfuscates shader code
(GLSL and HLSL). Its original use-case is for the
demoscene, for optimizing
4k and 64k intros. It is also suitable for reducing the size of the
shaders in other applications (e.g. webgl, games).
The code is tested with:
- F# 4.0 on Windows (Visual Studio Community 2015)
- F# 3.0 on Linux and Mono 3.2.8
Slightly outdated user manual:
http://www.ctrl-alt-test.fr/?page_id=7
Usage
Download Shader Minifier here:
https://github.com/laurentlb/Shader_Minifier/releases
It is a command-line tool. Without argument, it will show the usage. If you are
not on Windows, you will need mono:
$ shader_minifier.exe # Windows
$ mono shader_minifier.exe # Linux, Mac...
Important options
-
List the shaders you want to minify on the command-line.
-
Use -o
to choose the output file (by default, it will use shader_code.h
).
If you pass -
for the output, it will be printed on stdout.
-
Use --format
to control the output format. By default, it will create a C
header. There are other options to get only the shader, or have it in a .js or
nasm file.
-
Use --help
to see all the options. You can for example have some control on
what gets renamed.
Contributions are welcome.
Created by Laurent Le Brun (LLB / Ctrl-Alt-Test).
http://laurent.le-brun.eu
http://ctrl-alt-test.fr
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at
[email protected].