Code examples for opening windows for various purposes in very few bytes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 lines
286 B

#version 450
out vec4 fragColor;
void main()
{
// Normalized pixel coordinates (from -1 to 1)
vec2 iResolution = vec2(1920.0, 1080.0);
vec2 uv = (gl_FragCoord.xy/iResolution.xy)*2.0 - vec2(1.0,1.0);
uv.y *= iResolution.y/iResolution.x;
fragColor = abs(uv.yxyx);
}