Reflection probes working

This commit is contained in:
Juan Linietsky 2019-09-09 17:50:51 -03:00
parent 69e83e4815
commit 9d7b7f931b
14 changed files with 527 additions and 284 deletions

View file

@ -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;