IT'S ALIVE
This commit is contained in:
parent
1d06470ccd
commit
3f28498ad4
2 changed files with 36 additions and 47 deletions
|
|
@ -23,17 +23,24 @@ class SmcProgramBuilder {
|
|||
precision mediump float;
|
||||
|
||||
// uniform float uTime;
|
||||
// uniform vec2 uResolution;
|
||||
uniform vec2 uResolution;
|
||||
|
||||
void main() {
|
||||
// vec2 uv = gl_FragCoord.xy / uResolution;
|
||||
vec2 uv = gl_FragCoord.xy / uResolution.xy;
|
||||
// vec3 col = 0.5 + 0.5 * cos(uTime + uv.xyx + vec3(0, 2, 4));
|
||||
// gl_FragColor = vec4(col, 1.0);
|
||||
// gl_FragColor = vec4(216., 43., 72., 255.) / 255.;
|
||||
|
||||
|
||||
float maxfc = max(gl_FragCoord.x, gl_FragCoord.y);
|
||||
gl_FragColor = vec4(gl_FragCoord.xy, maxfc, maxfc) / maxfc;
|
||||
// float maxfc = max(gl_FragCoord.x, gl_FragCoord.y);
|
||||
// gl_FragColor = vec4(gl_FragCoord.xy, maxfc, maxfc) / maxfc;
|
||||
|
||||
float maxuv = max(uv.x, uv.y);
|
||||
gl_FragColor = vec4(216. * maxuv, 43., 72., 255.) / 255.;
|
||||
|
||||
|
||||
// vec3 col = 0.5 + 0.5*cos(uv.xyx+vec3(0,2,4));
|
||||
// gl_FragColor = vec4(col, 1.);
|
||||
}
|
||||
`;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue