Skip to content

Commit

Permalink
Examples: Fix color space in webgl_materials_video_webcam. (#26364)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Jul 3, 2023
1 parent 54a7d7f commit b9fb082
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/webgl_materials_video_webcam.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
video = document.getElementById( 'video' );

const texture = new THREE.VideoTexture( video );
texture.colorSpace = THREE.SRGBColorSpace;

const geometry = new THREE.PlaneGeometry( 16, 9 );
geometry.scale( 0.5, 0.5, 0.5 );
Expand Down

0 comments on commit b9fb082

Please sign in to comment.