How to use the RenderTarget function from three
Find comprehensive JavaScript three.RenderTarget code examples handpicked from public code repositorys.
GitHub: VeinKowal/veins
206 207 208 209 210 211 212 213 214 215
this.renderViewToRenderTarget(view, this.fullSizeRenderTarget, zone); this.renderer.readRenderTargetPixels(this.fullSizeRenderTarget, zone.x, this.height - (zone.y + zone.height), zone.width, zone.height, zone.buffer); return zone.buffer; } /** * Render view to a THREE.RenderTarget. * * @param {View} view - The view to render * @param {THREE.RenderTarget} [target] - destination render target. Default value: full size render target owned by c3DEngine. * @param {object} [zone] - partial zone to render (zone x/y uses view coordinates) Note: target must contain complete zone
0
1
0
three.Vector3 is the most popular function in three (22341 examples)