How to use the DepthTexture function from three
Find comprehensive JavaScript three.DepthTexture code examples handpicked from public code repositorys.
740 741 742 743 744 745 746 747 748
this.depthRenderTarget = this.normalRenderTarget.clone(); 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
25 26 27 28 29 30 31 32 33 34
this._visibilityCache = new Map(); // this.generateSampleKernel(); this.generateRandomKernelRotations(); // beauty render target const depthTexture = new three_1.DepthTexture(); depthTexture.format = three_1.DepthStencilFormat; depthTexture.type = three_1.UnsignedInt248Type; this.beautyRenderTarget = new three_1.WebGLRenderTarget(this.width, this.height); // normal render target with depth buffer
1
3
0
+ 5 other calls in file
43 44 45 46 47 48 49 50 51 52
magFilter: three_1.NearestFilter, }); 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; }
1
3
0
GitHub: VeinKowal/veins
70 71 72 73 74 75 76 77 78 79
this._nextThreejsLayer = 1; 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();
0
1
0
three.Vector3 is the most popular function in three (22341 examples)