initial implementation for scanlines
This commit is contained in:
parent
e4b1d8b6f4
commit
1351b17f22
4 changed files with 12 additions and 1 deletions
|
@ -11,6 +11,8 @@ aimed at providing a variety of effects in the vein of its parent project.
|
||||||
- Dithering
|
- Dithering
|
||||||
- Downscaling
|
- Downscaling
|
||||||
- Horizontal Blur
|
- Horizontal Blur
|
||||||
|
- Interlacing
|
||||||
|
- Scanlines
|
||||||
- Screen-Space Vertex Warping
|
- Screen-Space Vertex Warping
|
||||||
- Affine Texture Warping
|
- Affine Texture Warping
|
||||||
- World Curvature
|
- World Curvature
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
//#define aberration
|
//#define aberration
|
||||||
//#define hBlur
|
//#define hBlur
|
||||||
|
//#define scanlines
|
||||||
|
|
||||||
varying vec2 texcoord;
|
varying vec2 texcoord;
|
||||||
|
|
||||||
|
@ -25,6 +26,13 @@ void main() {
|
||||||
color.rb = aberrate().rb;
|
color.rb = aberrate().rb;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef scanlines
|
||||||
|
if(mod(int(gl_FragCoord.y / (pixelSize * 2)), 2) == 0)
|
||||||
|
color.rgb *= 0.95;
|
||||||
|
else
|
||||||
|
color.rgb /= 0.95;
|
||||||
|
#endif
|
||||||
|
|
||||||
gl_FragData[0] = vec4(color, 1);
|
gl_FragData[0] = vec4(color, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ option.valSteps=Value Depth
|
||||||
|
|
||||||
screen.SCREEN=Screen
|
screen.SCREEN=Screen
|
||||||
option.interlacing=Interlacing
|
option.interlacing=Interlacing
|
||||||
|
option.scanlines=Scanlines
|
||||||
option.aberration=Chromatic Aberration
|
option.aberration=Chromatic Aberration
|
||||||
|
|
||||||
screen.CONSOLE=Consoles
|
screen.CONSOLE=Consoles
|
||||||
|
|
|
@ -17,7 +17,7 @@ screen.COLOR.columns=3
|
||||||
screen.COLOR=colorMode dithering <empty> rgbSteps <empty> <empty> hueSteps satSteps valSteps
|
screen.COLOR=colorMode dithering <empty> rgbSteps <empty> <empty> hueSteps satSteps valSteps
|
||||||
|
|
||||||
# screen effects
|
# screen effects
|
||||||
screen.SCREEN=interlacing aberration
|
screen.SCREEN=interlacing scanlines aberration
|
||||||
|
|
||||||
# console effects
|
# console effects
|
||||||
screen.CONSOLE.columns=1
|
screen.CONSOLE.columns=1
|
||||||
|
|
Loading…
Reference in a new issue