UNPKG

@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.

30 lines (29 loc) 1.2 kB
/** This file must only contain pure code and pure imports */ import { GamepadCamera } from "../../Cameras/gamepadCamera.pure.js"; import { type Scene } from "../../scene.pure.js"; import { Vector3 } from "../../Maths/math.vector.pure.js"; /** * Camera used to simulate anaglyphic rendering (based on GamepadCamera) * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#anaglyph-cameras */ export declare class AnaglyphGamepadCamera extends GamepadCamera { /** * Creates a new AnaglyphGamepadCamera * @param name defines camera name * @param position defines initial position * @param interaxialDistance defines distance between each color axis * @param scene defines the hosting scene */ constructor(name: string, position: Vector3, interaxialDistance: number, scene?: Scene); /** * Gets camera class name * @returns AnaglyphGamepadCamera */ getClassName(): string; protected _setRigMode: () => void; } /** * Register side effects for anaglyphGamepadCamera. * Safe to call multiple times; only the first call has an effect. */ export declare function RegisterAnaglyphGamepadCamera(): void;