https://github.com/analogfeelings/milkshader
A custom shader example for Garry's Mod, based on the first game in the Milk series.
https://github.com/analogfeelings/milkshader
artistic example gmod gmod-addon hlsl hlsl-shader shaders simple source-engine
Last synced: 9 days ago
JSON representation
A custom shader example for Garry's Mod, based on the first game in the Milk series.
- Host: GitHub
- URL: https://github.com/analogfeelings/milkshader
- Owner: AnalogFeelings
- License: mit
- Created: 2025-03-27T01:33:10.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-03-30T22:35:23.000Z (10 months ago)
- Last Synced: 2025-04-23T21:39:40.210Z (9 months ago)
- Topics: artistic, example, gmod, gmod-addon, hlsl, hlsl-shader, shaders, simple, source-engine
- Language: HLSL
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# :milk_glass: Milk Shader
[](https://github.com/AnalogFeelings/MilkShader/issues)
[](https://github.com/AnalogFeelings/MilkShader/pulls)
[](https://github.com/AnalogFeelings/MilkShader/stargazers)
[](https://steamcommunity.com/sharedfiles/filedetails/?id=3452733745)
[](https://github.com/AnalogFeelings/MilkShader/blob/master/LICENSE.txt)
[](https://github.com/AnalogFeelings/MilkShader/graphs/commit-activity)
[](https://tech.lgbt/@analog_feelings)
This is a custom post processing shader for Garry's Mod, that requires the March 2025 update.
Visuals inspired by **Milk inside a bag of milk inside a bag of milk**. Shader code based on https://github.com/LucaSinUnaS/Milk-Filter.
## :inbox_tray: Downloads
You can find this addon in its [Steam Workshop](https://steamcommunity.com/sharedfiles/filedetails/?id=3452733745) page.
## :package: Building
1. Grab a copy of [ShaderCompile](https://github.com/SCell555/ShaderCompile/releases/latest), and place it in the root of the repository.
2. Open cmd or PowerShell in the repository root and execute `./ShaderCompile.exe /O 3 -ver 20b -shaderpath ./shaders milk_ps20b.hlsl`.
3. Once done, go to **shaders** > **shaders** > **fxc** and copy **milk_ps20b.vsc**.
4. Paste the file in **shaders** > **fxc**.
5. Go to where your Garry's Mod install is, then go to **garrysmod** > **addons**, and in a subfolder, place everything from the repository.
When starting up the game, you should see the filter apply on map load.
# :balance_scale: License
Licensed under the MIT License. You can read it [here](LICENSE.txt).
> [!WARNING]
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.