Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

GLTFCamera

Inherits: Resource < RefCounted < Object

Represents a GLTF camera.

Description

Represents a camera as defined by the base GLTF spec.

Tutorials

Properties

float

depth_far

4000.0

float

depth_near

0.05

float

fov

1.309

bool

perspective

true

float

size_mag

0.5

Methods

GLTFCamera

from_dictionary ( Dictionary dictionary ) static

GLTFCamera

from_node ( Camera3D camera_node ) static

Dictionary

to_dictionary ( ) const

Camera3D

to_node ( ) const


Property Descriptions

float depth_far = 4000.0

  • void set_depth_far ( float value )

  • float get_depth_far ( )

The distance to the far culling boundary for this camera relative to its local Z axis, in meters. This maps to GLTF's zfar property.


float depth_near = 0.05

  • void set_depth_near ( float value )

  • float get_depth_near ( )

The distance to the near culling boundary for this camera relative to its local Z axis, in meters. This maps to GLTF's znear property.


float fov = 1.309

The FOV of the camera. This cla