File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,10 +6,9 @@ import {
66 TextureDataType ,
77 Wrapping ,
88} from "../constants.js" ;
9- import { DepthTextureImageData } from "./DepthTexture.js" ;
10- import { Texture } from "./Texture.js" ;
9+ import { DepthTexture , DepthTextureImageData } from "./DepthTexture.js" ;
1110
12- declare class CubeDepthTexture extends Texture < CubeDepthTextureImageData > {
11+ declare class CubeDepthTexture extends DepthTexture < CubeDepthTextureImageData > {
1312 readonly isCubeDepthTexture : true ;
1413 readonly isCubeTexture : true ;
1514
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import { Texture } from "./Texture.js";
1515 * @see {@link https://threejs.org/docs/index.html#api/en/textures/DepthTexture | Official Documentation }
1616 * @see {@link https://github.com/mrdoob/three.js/blob/master/src/textures/DepthTexture.js | Source }
1717 */
18- export class DepthTexture extends Texture < DepthTextureImageData > {
18+ export class DepthTexture < TImage = DepthTextureImageData > extends Texture < TImage > {
1919 /**
2020 * Create a new instance of {@link DepthTexture}
2121 * @param width Width of the texture.
Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ import * as THREE from "three";
33const texture = new THREE . CubeDepthTexture ( 512 ) ;
44texture . isCubeDepthTexture ; // $ExpectType true
55texture . isCubeTexture ; // $ExpectType true
6+ texture . isDepthTexture ; // $ExpectType true
67texture . images ; // $ExpectType CubeDepthTextureImageData
You can’t perform that action at this time.
0 commit comments