Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fadookie/gzdoom-shaders
Shader experiments for GZDoom - check history for older ones
https://github.com/fadookie/gzdoom-shaders
Last synced: about 1 month ago
JSON representation
Shader experiments for GZDoom - check history for older ones
- Host: GitHub
- URL: https://github.com/fadookie/gzdoom-shaders
- Owner: fadookie
- License: mit
- Created: 2018-03-10T07:41:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-15T08:55:28.000Z (almost 7 years ago)
- Last Synced: 2024-10-14T06:12:43.617Z (3 months ago)
- Size: 23.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
This is a multi-function postprocess shader for [GZDoom 3.2.5+](https://zdoom.org/) that supports various effects which can be combined together. They are mostly based on a 3d simplex (perlin) noise function such as texture distortion and tint, in addition to some trippy effects like lerping the hue, saturation, or value.
Texture distortion, subtraction, and tint:
![Nukage shader](https://eliot.s3.amazonaws.com/media/doom/nukage.gif)
HSV shift animation:
![HSV shift animation](https://eliot.s3.amazonaws.com/media/doom/animhsv.gif)
The root of this repo can be loaded as a `-file` by GZDoom, or you can use a pk3 from the releases section.
# CVars / Uniforms
Shader uniforms can be controlled from ZScript or using CVars. Here are the available CVars for tweaking the uniforms:
| CVar | Default | Description |
|:-----|:--------|:------------|
|`timescale`|`0.005`| how quickly to run the noise permutations |
|`scale `|`1`| uniform scale (zoom) of 2d noise plane |
|`distortion`|`0.05`|How much to distort texture. `0` means no distorition. Values higher than about `0.3` will make the game unplayable but look cool...|
|`subtractive`|`0.25`|amount of color to subtract (darken) the screen by based on noise function, `0` means no subtraction.|
|`animh`|`true`|Animate hue?|
|`anims`|`true`|Animate saturation?|
|`animv`|`true`|Animate value?|
|`tintr`|`0`|Red channel additive tint|
|`tintg`|`0`|Green channel additive tint|
|`tintb`|`0`|Blue channel additive tint|