Skip to content

Commit

Permalink
Add isVideoFrameTexture=true in VideoFrameTexture (#30381)
Browse files Browse the repository at this point in the history
* brand

* doc

* ci

* Update VideoFrameTexture.js

* html doc, not jsdoc

---------

Co-authored-by: Michael Herzog <[email protected]>
  • Loading branch information
ycw and Mugen87 authored Jan 22, 2025
1 parent f958a13 commit 1d5c43d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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;

}

update() {
Expand Down

0 comments on commit 1d5c43d

Please sign in to comment.