The same entity as in Lens Scripting.
Editor.Components.Camera.
const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel; const camera = model.project.scene.mainCamera; // Set the camera to clear depth to a specific value camera.clearDepth.mode = Editor.Components.CameraClearDepth.Mode.Value; camera.clearDepth.value = 1.0; console.log(`clearDepth.mode: ${camera.clearDepth.mode}, value: ${camera.clearDepth.value}`); Copy
const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel; const camera = model.project.scene.mainCamera; // Set the camera to clear depth to a specific value camera.clearDepth.mode = Editor.Components.CameraClearDepth.Mode.Value; camera.clearDepth.value = 1.0; console.log(`clearDepth.mode: ${camera.clearDepth.mode}, value: ${camera.clearDepth.value}`);
Do not clear the depth buffer.
Clear depth buffer to a texture.
Clear depth buffer to a constant value.
The same entity as in Lens Scripting.
See
Editor.Components.Camera.
Example