Documentation
¶
Overview ¶
graphics.gd/classdb/CameraAttributesPhysical is used to set rendering settings based on a physically-based camera's settings. It is responsible for exposure, auto-exposure, and depth of field.
When used in a graphics.gd/classdb/WorldEnvironment it provides default settings for exposure, auto-exposure, and depth of field that will be used by all cameras without their own graphics.gd/classdb/CameraAttributes, including the editor camera. When used in a graphics.gd/classdb/Camera3D it will override any graphics.gd/classdb/CameraAttributes set in the graphics.gd/classdb/WorldEnvironment and will override the [graphics.gd/classdb/Camera3D]s graphics.gd/classdb/Camera3D.Instance.Far, graphics.gd/classdb/Camera3D.Instance.Near, graphics.gd/classdb/Camera3D.Instance.Fov, and graphics.gd/classdb/Camera3D.Instance.KeepAspect properties. When used in graphics.gd/classdb/VoxelGI or graphics.gd/classdb/LightmapGI, only the exposure settings will be used.
The default settings are intended for use in an outdoor environment, tips for settings for use in an indoor environment can be found in each setting's documentation.
Note: Depth of field blur is only supported in the Forward+ and Mobile rendering methods, not Compatibility.
Index ¶
- type Advanced
- type Any
- type Extension
- func (self *Extension[T]) AsCameraAttributes() CameraAttributes.Instance
- func (self *Extension[T]) AsCameraAttributesPhysical() Instance
- func (self *Extension[T]) AsObject() [1]gd.Object
- func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
- func (self *Extension[T]) AsResource() Resource.Instance
- type ID
- type Instance
- func (self Instance) AsCameraAttributes() CameraAttributes.Instance
- func (self Instance) AsCameraAttributesPhysical() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) AutoExposureMaxExposureValue() Float.X
- func (self Instance) AutoExposureMinExposureValue() Float.X
- func (self Instance) ExposureAperture() Float.X
- func (self Instance) ExposureShutterSpeed() Float.X
- func (self Instance) FrustumFar() Float.X
- func (self Instance) FrustumFocalLength() Float.X
- func (self Instance) FrustumFocusDistance() Float.X
- func (self Instance) FrustumNear() Float.X
- func (self Instance) GetFov() Float.X
- func (self Instance) ID() ID
- func (self Instance) SetAutoExposureMaxExposureValue(value Float.X)
- func (self Instance) SetAutoExposureMinExposureValue(value Float.X)
- func (self Instance) SetExposureAperture(value Float.X)
- func (self Instance) SetExposureShutterSpeed(value Float.X)
- func (self Instance) SetFrustumFar(value Float.X)
- func (self Instance) SetFrustumFocalLength(value Float.X)
- func (self Instance) SetFrustumFocusDistance(value Float.X)
- func (self Instance) SetFrustumNear(value Float.X)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsCameraAttributes ¶
func (self *Extension[T]) AsCameraAttributes() CameraAttributes.Instance
func (*Extension[T]) AsCameraAttributesPhysical ¶
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
func (*Extension[T]) AsResource ¶
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.CameraAttributesPhysical
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsCameraAttributes ¶
func (self Instance) AsCameraAttributes() CameraAttributes.Instance
func (Instance) AsCameraAttributesPhysical ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) AutoExposureMaxExposureValue ¶
func (Instance) AutoExposureMinExposureValue ¶
func (Instance) ExposureAperture ¶
func (Instance) ExposureShutterSpeed ¶
func (Instance) FrustumFar ¶
func (Instance) FrustumFocalLength ¶
func (Instance) FrustumFocusDistance ¶
func (Instance) FrustumNear ¶
func (Instance) GetFov ¶
Returns the vertical field of view that corresponds to the Instance.FrustumFocalLength. This value is calculated internally whenever Instance.FrustumFocalLength is changed.