I found a strange behavior for Safari dealing with readPixels and RawTexture CreateRGBATexture.
In our project, we need to capture the videoTexture current frame and use it to do some cross fade effect.
Our code works fine on chrome but fails on Safari.
What we are trying to do is as below.
Use texture.readPixels to get the texture’s bufferView data.
Create a RawTexture with those data using CreateRGBATexture function.
Paste it to another material.
In chrome it works all fine, but in Safari it does not work.
I created a PG as below to demonstrate it.
Use Chrome, Safari, Firefox to open it and rotate the cube will see the different result.
The inner cube should have the same texture as the outside cube.
Chrome works while Safari fails.
Chrome version: 89.0.4389.82
Safari version: 14.0.1
Does anyone know how to fix it?
Really appreciate for your help. Thanks.