[Webkit-unassigned] [Bug 163866] UNPACK_FLIP_Y_WEBGL breaks HLS video textures
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 25 02:00:24 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=163866
--- Comment #16 from Daniel Rossi <electroteque at gmail.com> ---
@Dean Jackson
I am the original reporter.
_gl.pixelStorei( _gl.UNPACK_FLIP_Y_WEBGL, true );
This has to be disabled. This inverts the picture natively because it renders upside down by default.
Using this causes a black picture with HLS.
I am now seeing reports by clients my flipy work arounds are now broken in IOS11. It's now a black picture again with HLS !
I don't have a new device to get IOS11. Iphone 5 has now been deprecated so I have absolutely nothing left to test with.
The simulator shows up different I think.
It has to be done within the shader.
For a flipy in the vertex shader for Safari with HLS it's this
varying vec2 vUV;
void main() {
vUV = vec2( uv.x, 1.0 - uv.y);
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}
This is the current work around and
_gl.pixelStorei( _gl.UNPACK_FLIP_Y_WEBGL, false );
I am very much struggling to test faults bought in with IOS11 because , more devices are knocked off the list getting it.
The HLS color channel inversion for IOS is another bug work around which I mentioned in Three.js where I reported the fix.
It's this for IOS10 and I guess 11 with HLS. In the fragment shader.
uniform sampler2D texture;
varying vec2 vUV;
void main() {
gl_FragColor = texture2D( texture, vUV ).bgra;
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171025/1fe73779/attachment.html>
More information about the webkit-unassigned
mailing list