build
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -jtest
build
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -jtest
| precision highp float; | |
| uniform vec2 resolution; | |
| uniform float time; | |
| layout (location = 0) out vec4 outColor; | |
| vec2 aspect(vec2 size) { | |
| float ma = max(size.x, size.y) / min(size.x, size.y); | |
| float a = size.x / size.y; | |
| return vec2(ma * min(a, 1.), max(1. / a, 1.)); | |
| } |