@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
32 lines (31 loc) • 980 B
TypeScript
import { RenderTargetTexture } from "../Textures/renderTargetTexture.js";
import type { Scene } from "../../scene.js";
/**
* Renders to multiple views with a single draw call
* Only for WebGL backends
* @see https://www.khronos.org/registry/webgl/extensions/OVR_multiview2/
*/
export declare class MultiviewRenderTarget extends RenderTargetTexture {
set samples(value: number);
get samples(): number;
/**
* Creates a multiview render target
* @param scene scene used with the render target
* @param size the size of the render target (used for each view)
*/
constructor(scene?: Scene, size?: number | {
width: number;
height: number;
} | {
ratio: number;
});
/**
* @internal
*/
_bindFrameBuffer(): void;
/**
* Gets the number of views the corresponding to the texture (eg. a MultiviewRenderTarget will have > 1)
* @returns the view count
*/
getViewCount(): number;
}