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; }
3
7
1
+ 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();
1
3
0
GitHub: VeinKowal/veins
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);
0
1
0
three.Vector3 is the most popular function in three (22341 examples)