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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue