Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konyshevartem/unity-shaders-study
Project to study shader basics
https://github.com/konyshevartem/unity-shaders-study
box-blur c-sharp chromatic-aberration distortion hlsl image-effects portal raymarching raytracing shader shaderlab shaders stencil-buffer unity urp volumetric-lighting
Last synced: about 1 month ago
JSON representation
Project to study shader basics
- Host: GitHub
- URL: https://github.com/konyshevartem/unity-shaders-study
- Owner: KonyshevArtem
- Created: 2020-03-28T18:32:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-20T15:25:14.000Z (over 1 year ago)
- Last Synced: 2023-08-20T16:45:06.623Z (over 1 year ago)
- Topics: box-blur, c-sharp, chromatic-aberration, distortion, hlsl, image-effects, portal, raymarching, raytracing, shader, shaderlab, shaders, stencil-buffer, unity, urp, volumetric-lighting
- Language: ShaderLab
- Homepage:
- Size: 37.2 MB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# unity-shaders-study
Project to study shader basics## Magic Cube
Use stencil buffer to mask out objects inside cube.
![](Demo/magic_cube.gif)
## Portal Effect
Use stencil buffer and z-order to achieve effect of object going inside portal.
![](Demo/portal.gif)
## Distortion Image Effect
Use distortion map to offset uv of rendered image.
![](Demo/distortion.gif)
## Box Blur
Simple box blur - mean of current pixel and its neighbours.
![](Demo/blur.png)
## Chromatic Aberration
Sample value for each color channel separately adding offset
![](Demo/chromatic_aberration.png)