@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.
10 lines • 532 B
JavaScript
import { PassPostProcess } from "../../PostProcesses/passPostProcess.js";
import { AnaglyphPostProcess } from "../../PostProcesses/anaglyphPostProcess.js";
/**
* @internal
*/
export function setStereoscopicAnaglyphRigMode(camera) {
camera._rigCameras[0]._rigPostProcess = new PassPostProcess(camera.name + "_passthru", 1.0, camera._rigCameras[0]);
camera._rigCameras[1]._rigPostProcess = new AnaglyphPostProcess(camera.name + "_anaglyph", 1.0, camera._rigCameras);
}
//# sourceMappingURL=stereoscopicAnaglyphRigMode.js.map