Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isVideoFrameTexture=true in VideoFrameTexture #30381

Merged
merged 6 commits into from
Jan 22, 2025
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
3 changes: 3 additions & 0 deletions docs/api/en/textures/VideoFrameTexture.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ <h2>Properties</h2>

<p>See the base [page:VideoTexture VideoTexture] class for common properties.</p>

<h3>[property:Boolean isVideoFrameTexture]</h3>
<p>Read-only flag to check if a given object is of type [name].</p>

<h2>Methods</h2>

<p>See the base [page:VideoTexture VideoTexture] class for common methods.</p>
Expand Down
2 changes: 2 additions & 0 deletions src/textures/VideoFrameTexture.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class VideoFrameTexture extends VideoTexture {

super( {}, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );

this.isVideoFrameTexture = true;
Mugen87 marked this conversation as resolved.
Show resolved Hide resolved

}

update() {
Expand Down
Loading