How to use the UnsignedShortType function from three

Find comprehensive JavaScript three.UnsignedShortType code examples handpicked from public code repositorys.

741
742
743
744
745
746
747
748
749
750
let depthTexture;

if ( this.supportsDepthTextureExtension ) {

	depthTexture = new THREE.DepthTexture();
	depthTexture.type = THREE.UnsignedShortType;
	this.beautyRenderTarget.depthTexture = depthTexture;
	this.beautyRenderTarget.depthBuffer = true;

}
fork icon3
star icon7
watch icon1

+ 17 other calls in file

44
45
46
47
48
49
50
51
52
53
});
this.depthRenderTarget = this.normalRenderTarget.clone();
let depthTexture;
if (this.supportsDepthTextureExtension) {
    depthTexture = new three_1.DepthTexture();
    depthTexture.type = three_1.UnsignedShortType;
    this.beautyRenderTarget.depthTexture = depthTexture;
    this.beautyRenderTarget.depthBuffer = true;
}
this.depthMaterial = new three_1.MeshDepthMaterial();
fork icon1
star icon3
watch icon0

71
72
73
74
75
76
77
78
79
80
this.fullSizeRenderTarget = new THREE.WebGLRenderTarget(this.width, this.height);
this.fullSizeRenderTarget.texture.minFilter = THREE.LinearFilter;
this.fullSizeRenderTarget.texture.magFilter = THREE.NearestFilter;
this.fullSizeRenderTarget.depthBuffer = true;
this.fullSizeRenderTarget.depthTexture = new THREE.DepthTexture();
this.fullSizeRenderTarget.depthTexture.type = THREE.UnsignedShortType;

this.renderView = function (view) {
  this.renderer.clear();
  this.renderer.render(view.scene, view.camera.camera3D);
fork icon0
star icon1
watch icon0

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)