Reflection probes working
This commit is contained in:
parent
69e83e4815
commit
9d7b7f931b
14 changed files with 527 additions and 284 deletions
|
|
@ -512,7 +512,7 @@ CameraMatrix CameraMatrix::operator*(const CameraMatrix &p_matrix) const {
|
|||
return new_matrix;
|
||||
}
|
||||
|
||||
void CameraMatrix::set_depth_correction() {
|
||||
void CameraMatrix::set_depth_correction(bool p_flip_y) {
|
||||
|
||||
real_t *m = &matrix[0][0];
|
||||
|
||||
|
|
@ -521,7 +521,7 @@ void CameraMatrix::set_depth_correction() {
|
|||
m[2] = 0.0;
|
||||
m[3] = 0.0;
|
||||
m[4] = 0.0;
|
||||
m[5] = -1;
|
||||
m[5] = p_flip_y ? -1 : 1;
|
||||
m[6] = 0.0;
|
||||
m[7] = 0.0;
|
||||
m[8] = 0.0;
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ struct CameraMatrix {
|
|||
void set_identity();
|
||||
void set_zero();
|
||||
void set_light_bias();
|
||||
void set_depth_correction();
|
||||
void set_depth_correction(bool p_flip_y = true);
|
||||
void set_light_atlas_rect(const Rect2 &p_rect);
|
||||
void set_perspective(real_t p_fovy_degrees, real_t p_aspect, real_t p_z_near, real_t p_z_far, bool p_flip_fov = false);
|
||||
void set_perspective(real_t p_fovy_degrees, real_t p_aspect, real_t p_z_near, real_t p_z_far, bool p_flip_fov, int p_eye, real_t p_intraocular_dist, real_t p_convergence_dist);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue