|
@@ -1,5 +1,5 @@
|
|
|
import { Texture } from './Texture.js';
|
|
|
-import { NearestFilter, UnsignedShortType, UnsignedInt248Type, DepthFormat, DepthStencilFormat } from '../constants.js';
|
|
|
+import { NearestFilter, UnsignedIntType, UnsignedInt248Type, DepthFormat, DepthStencilFormat } from '../constants.js';
|
|
|
|
|
|
class DepthTexture extends Texture {
|
|
|
|
|
@@ -13,7 +13,7 @@ class DepthTexture extends Texture {
|
|
|
|
|
|
}
|
|
|
|
|
|
- if ( type === undefined && format === DepthFormat ) type = UnsignedShortType;
|
|
|
+ if ( type === undefined && format === DepthFormat ) type = UnsignedIntType;
|
|
|
if ( type === undefined && format === DepthStencilFormat ) type = UnsignedInt248Type;
|
|
|
|
|
|
super( null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
|
|
@@ -26,7 +26,7 @@ class DepthTexture extends Texture {
|
|
|
this.minFilter = minFilter !== undefined ? minFilter : NearestFilter;
|
|
|
|
|
|
this.flipY = false;
|
|
|
- this.generateMipmaps = false;
|
|
|
+ this.generateMipmaps = false;
|
|
|
|
|
|
}
|
|
|
|