2023-09-27 06:49:59 +00:00
|
|
|
uniform float amount; /// min:0 set:0.10 max:0.5
|
|
|
|
|
2023-09-25 04:29:29 +00:00
|
|
|
void mainImage( out vec4 fragColor, in vec2 fragCoord ) {
|
2023-09-27 06:49:59 +00:00
|
|
|
vec2 uv = fragCoord.xy / iResolution.xy;
|
|
|
|
|
2023-07-30 19:18:50 +00:00
|
|
|
// letterbox
|
2023-09-27 06:49:59 +00:00
|
|
|
if( uv.y < amount || (1.0-uv.y) < amount ) {
|
2023-07-30 19:18:50 +00:00
|
|
|
fragColor = vec4( 0., 0., 0., 1. );
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
fragColor = texture(iChannel0, uv);
|
|
|
|
}
|