Hello, I configured video texture follow the official example but the video shows wrong.
I don’t know if I forgetting something.
Here there is a codesandbox with the example where show html video and texture plane.
Hello, I configured video texture follow the official example but the video shows wrong.
I don’t know if I forgetting something.
I found the problem. This may help someone. I had to change
// texture.format = THREE.RGBFormat;
texture.encoding = THREE.sRGBEncoding
because I’m using
renderer.gammaFactor = 2.2;
renderer.gammaOutput = true;
When upgrading three.js
, you might want to remove both lines and replace them with:
renderer.outputEncoding = THREE.sRGBEncoding;
okay, thank you.