-
Notifications
You must be signed in to change notification settings - Fork 328
Open
Description
Hi
Video example shows balck screen: https://regl-project.github.io/regl/www/gallery/video.js.html
I looked at #469, and it seems like the fix is not working anymore. At least for me in Safari 15 and Chrome 105 I am seeing a black screen.
Autoplay without sound gives me a video that plays, but it doesn't seem to go into the sampler2D.
Shortened example:
const frag = glsl(`
precision highp float;
uniform float time;
uniform sampler2D video;
varying vec2 vUv;
void main () {
vec4 t = texture2D(video, vUv);
vec3 color = 0.5 + 0.5 * cos(time + vUv.xyx + vec3(0.0, 2.0, 4.0));
gl_FragColor = vec4(color, 1.0);
}
`);
createShader({
gl,
frag,
uniforms: {
video: regl.texture(video).subimage(video),
time: ({ time }) => time
}
});
}
Metadata
Metadata
Assignees
Labels
No labels