#include "camera_attributes.h"
#include "core/config/project_settings.h"
#include "servers/rendering_server.h"
void CameraAttributes::set_exposure_multiplier(float p_multiplier) { … }
float CameraAttributes::get_exposure_multiplier() const { … }
void CameraAttributes::set_exposure_sensitivity(float p_sensitivity) { … }
float CameraAttributes::get_exposure_sensitivity() const { … }
void CameraAttributes::_update_exposure() { … }
void CameraAttributes::set_auto_exposure_enabled(bool p_enabled) { … }
bool CameraAttributes::is_auto_exposure_enabled() const { … }
void CameraAttributes::set_auto_exposure_speed(float p_auto_exposure_speed) { … }
float CameraAttributes::get_auto_exposure_speed() const { … }
void CameraAttributes::set_auto_exposure_scale(float p_auto_exposure_scale) { … }
float CameraAttributes::get_auto_exposure_scale() const { … }
RID CameraAttributes::get_rid() const { … }
void CameraAttributes::_validate_property(PropertyInfo &p_property) const { … }
void CameraAttributes::_bind_methods() { … }
CameraAttributes::CameraAttributes() { … }
CameraAttributes::~CameraAttributes() { … }
void CameraAttributesPractical::set_dof_blur_far_enabled(bool p_enabled) { … }
bool CameraAttributesPractical::is_dof_blur_far_enabled() const { … }
void CameraAttributesPractical::set_dof_blur_far_distance(float p_distance) { … }
float CameraAttributesPractical::get_dof_blur_far_distance() const { … }
void CameraAttributesPractical::set_dof_blur_far_transition(float p_distance) { … }
float CameraAttributesPractical::get_dof_blur_far_transition() const { … }
void CameraAttributesPractical::set_dof_blur_near_enabled(bool p_enabled) { … }
bool CameraAttributesPractical::is_dof_blur_near_enabled() const { … }
void CameraAttributesPractical::set_dof_blur_near_distance(float p_distance) { … }
float CameraAttributesPractical::get_dof_blur_near_distance() const { … }
void CameraAttributesPractical::set_dof_blur_near_transition(float p_distance) { … }
float CameraAttributesPractical::get_dof_blur_near_transition() const { … }
void CameraAttributesPractical::set_dof_blur_amount(float p_amount) { … }
float CameraAttributesPractical::get_dof_blur_amount() const { … }
void CameraAttributesPractical::_update_dof_blur() { … }
float CameraAttributesPractical::calculate_exposure_normalization() const { … }
void CameraAttributesPractical::set_auto_exposure_min_sensitivity(float p_min) { … }
float CameraAttributesPractical::get_auto_exposure_min_sensitivity() const { … }
void CameraAttributesPractical::set_auto_exposure_max_sensitivity(float p_max) { … }
float CameraAttributesPractical::get_auto_exposure_max_sensitivity() const { … }
void CameraAttributesPractical::_update_auto_exposure() { … }
void CameraAttributesPractical::_validate_property(PropertyInfo &p_property) const { … }
void CameraAttributesPractical::_bind_methods() { … }
CameraAttributesPractical::CameraAttributesPractical() { … }
CameraAttributesPractical::~CameraAttributesPractical() { … }
void CameraAttributesPhysical::set_aperture(float p_aperture) { … }
float CameraAttributesPhysical::get_aperture() const { … }
void CameraAttributesPhysical::set_shutter_speed(float p_shutter_speed) { … }
float CameraAttributesPhysical::get_shutter_speed() const { … }
void CameraAttributesPhysical::set_focal_length(float p_focal_length) { … }
float CameraAttributesPhysical::get_focal_length() const { … }
void CameraAttributesPhysical::set_focus_distance(float p_focus_distance) { … }
float CameraAttributesPhysical::get_focus_distance() const { … }
void CameraAttributesPhysical::set_near(real_t p_near) { … }
real_t CameraAttributesPhysical::get_near() const { … }
void CameraAttributesPhysical::set_far(real_t p_far) { … }
real_t CameraAttributesPhysical::get_far() const { … }
real_t CameraAttributesPhysical::get_fov() const { … }
void CameraAttributesPhysical::_update_frustum() { … }
float CameraAttributesPhysical::calculate_exposure_normalization() const { … }
void CameraAttributesPhysical::set_auto_exposure_min_exposure_value(float p_min) { … }
float CameraAttributesPhysical::get_auto_exposure_min_exposure_value() const { … }
void CameraAttributesPhysical::set_auto_exposure_max_exposure_value(float p_max) { … }
float CameraAttributesPhysical::get_auto_exposure_max_exposure_value() const { … }
void CameraAttributesPhysical::_update_auto_exposure() { … }
void CameraAttributesPhysical::_validate_property(PropertyInfo &property) const { … }
void CameraAttributesPhysical::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_aperture", "aperture"), &CameraAttributesPhysical::set_aperture);
ClassDB::bind_method(D_METHOD("get_aperture"), &CameraAttributesPhysical::get_aperture);
ClassDB::bind_method(D_METHOD("set_shutter_speed", "shutter_speed"), &CameraAttributesPhysical::set_shutter_speed);
ClassDB::bind_method(D_METHOD("get_shutter_speed"), &CameraAttributesPhysical::get_shutter_speed);
ClassDB::bind_method(D_METHOD("set_focal_length", "focal_length"), &CameraAttributesPhysical::set_focal_length);
ClassDB::bind_method(D_METHOD("get_focal_length"), &CameraAttributesPhysical::get_focal_length);
ClassDB::bind_method(D_METHOD("set_focus_distance", "focus_distance"), &CameraAttributesPhysical::set_focus_distance);
ClassDB::bind_method(D_METHOD("get_focus_distance"), &CameraAttributesPhysical::get_focus_distance);
ClassDB::bind_method(D_METHOD("set_near", "near"), &CameraAttributesPhysical::set_near);
ClassDB::bind_method(D_METHOD("get_near"), &CameraAttributesPhysical::get_near);
ClassDB::bind_method(D_METHOD("set_far", "far"), &CameraAttributesPhysical::set_far);
ClassDB::bind_method(D_METHOD("get_far"), &CameraAttributesPhysical::get_far);
ClassDB::bind_method(D_METHOD("get_fov"), &CameraAttributesPhysical::get_fov);
ClassDB::bind_method(D_METHOD("set_auto_exposure_max_exposure_value", "exposure_value_max"), &CameraAttributesPhysical::set_auto_exposure_max_exposure_value);
ClassDB::bind_method(D_METHOD("get_auto_exposure_max_exposure_value"), &CameraAttributesPhysical::get_auto_exposure_max_exposure_value);
ClassDB::bind_method(D_METHOD("set_auto_exposure_min_exposure_value", "exposure_value_min"), &CameraAttributesPhysical::set_auto_exposure_min_exposure_value);
ClassDB::bind_method(D_METHOD("get_auto_exposure_min_exposure_value"), &CameraAttributesPhysical::get_auto_exposure_min_exposure_value);
ADD_GROUP("Frustum", "frustum_");
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "frustum_focus_distance", PROPERTY_HINT_RANGE, "0.01,4000.0,0.01,suffix:m"), "set_focus_distance", "get_focus_distance");
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "frustum_focal_length", PROPERTY_HINT_RANGE, "1.0,800.0,0.01,exp,suffix:mm"), "set_focal_length", "get_focal_length");
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "frustum_near", PROPERTY_HINT_RANGE, "0.001,10,0.001,or_greater,exp,suffix:m"), "set_near", "get_near");
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "frustum_far", PROPERTY_HINT_RANGE, "0.01,4000,0.01,or_greater,exp,suffix:m"), "set_far", "get_far");
ADD_GROUP("Exposure", "exposure_");
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "exposure_aperture", PROPERTY_HINT_RANGE, "0.5,64.0,0.01,exp,suffix:f-stop"), "set_aperture", "get_aperture");
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "exposure_shutter_speed", PROPERTY_HINT_RANGE, "0.1,8000.0,0.001,suffix:1/s"), "set_shutter_speed", "get_shutter_speed");
ADD_GROUP("Auto Exposure", "auto_exposure_");
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "auto_exposure_min_exposure_value", PROPERTY_HINT_RANGE, "-16.0,16.0,0.01,or_greater,suffix:EV100"), "set_auto_exposure_min_exposure_value", "get_auto_exposure_min_exposure_value");
ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "auto_exposure_max_exposure_value", PROPERTY_HINT_RANGE, "-16.0,16.0,0.01,or_greater,suffix:EV100"), "set_auto_exposure_max_exposure_value", "get_auto_exposure_max_exposure_value");
};
CameraAttributesPhysical::CameraAttributesPhysical() { … }
CameraAttributesPhysical::~CameraAttributesPhysical() { … }