Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/webgpu_lights_projector.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
video.play();

videoTexture = new THREE.VideoTexture( video );
videoTexture.colorSpace = THREE.SRGBColorSpace;

}

Expand Down
1 change: 1 addition & 0 deletions examples/webgpu_materials_video.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
} );

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

//

Expand Down
3 changes: 3 additions & 0 deletions src/textures/VideoTexture.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import { Texture } from './Texture.js';
* const texture = new THREE.VideoTexture( video );
* ```
*
* Note: When using video textures with {@link WebGPURenderer}, {@link Texture#colorSpace} must be
* set to THREE.SRGBColorSpace.
*
* Note: After the initial use of a texture, its dimensions, format, and type
* cannot be changed. Instead, call {@link Texture#dispose} on the texture and instantiate a new one.
*
Expand Down