KinoGlitch | Video glitch effects for Unity | Game Engine library
kandi X-RAY | KinoGlitch Summary
kandi X-RAY | KinoGlitch Summary
KinoGlitch is a collection of glitch video effects. At the moment, it provides two types of glitch effects.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of KinoGlitch
KinoGlitch Key Features
KinoGlitch Examples and Code Snippets
Community Discussions
Trending Discussions on KinoGlitch
QUESTION
Ok so Im using this glitch effect (the analog one) that features a color "drift"
https://github.com/keijiro/KinoGlitch
It comes with a shader and this Analog Glitch script (all in link):
...ANSWER
Answered 2018-Jun-17 at 00:59_ColorDrift
is used to generate a local variable in the shader called drift
, this value is then only used in one location to generate the src2
texture.
This texture is then used once, return half4(src1.r, src2.g, src1.b, 1);
Notice that the src2
texture only supplies its Green value. This means that the green channel is offset (generating Green and Anti-Green (Magenta) distortions).
You can adjust this return
line to generate Red/Anti-Red (Cyan) distortions or Blue/Anti-Blue (Yellow) distortions. Just change which color value the src2
variable applies to.
Red/Cyan:
return half4(src2.r, src1.g, src1.b, 1);
Blue/Yellow:
return half4(src1.r, src1.g, src2.b, 1);
Note that applying src2
to two of the color channels just flip-flops the distortion (Red/Anti-Red -> Anti-Red/Red) and makes it more intense (the apparent distance the texture jumps is greater).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install KinoGlitch
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page