|
@@ -19,6 +19,7 @@ import { WebVRManager } from '../renderers/webvr/WebVRManager';
|
|
|
import { RenderTarget } from './webgl/WebGLRenderLists';
|
|
|
import { Geometry } from './../core/Geometry';
|
|
|
import { BufferGeometry } from './../core/BufferGeometry';
|
|
|
+import { Texture } from '../textures/Texture';
|
|
|
|
|
|
export interface Renderer {
|
|
|
domElement: HTMLCanvasElement;
|
|
@@ -396,6 +397,26 @@ export class WebGLRenderer implements Renderer {
|
|
|
activeCubeFaceIndex?: number
|
|
|
): void;
|
|
|
|
|
|
+ /**
|
|
|
+ * Copies a region of the currently bound framebuffer into the selected mipmap level of the selected texture.
|
|
|
+ * This region is defined by the size of the destination texture's mip level, offset by the input position.
|
|
|
+ *
|
|
|
+ * @param position Specifies the pixel offset from which to copy out of the framebuffer.
|
|
|
+ * @param texture Specifies the destination texture.
|
|
|
+ * @param level Specifies the destination mipmap level of the texture.
|
|
|
+ */
|
|
|
+ copyFramebufferToTexture( position: Vector2, texture: Texture, level?: number ): void;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Copies srcTexture to the specified level of dstTexture, offset by the input position.
|
|
|
+ *
|
|
|
+ * @param position Specifies the pixel offset into the dstTexture where the copy will occur.
|
|
|
+ * @param srcTexture Specifies the source texture.
|
|
|
+ * @param dstTexture Specifies the destination texture.
|
|
|
+ * @param level Specifies the destination mipmap level of the texture.
|
|
|
+ */
|
|
|
+ copyTextureToTexture( position: Vector2, srcTexture: Texture, dstTexture: Texture, level?: number ): void;
|
|
|
+
|
|
|
/**
|
|
|
* @deprecated
|
|
|
*/
|