Remove unnecessary this-> expressions

This commit is contained in:
A Thousand Ships
2024-01-28 21:51:39 +01:00
parent 17e7f85c06
commit 15369fdb1d
39 changed files with 160 additions and 160 deletions

View File

@@ -109,7 +109,7 @@ Vector3 Vector3::octahedron_decode(const Vector2 &p_oct) {
Vector2 Vector3::octahedron_tangent_encode(const float sign) const {
const float bias = 1.0f / 32767.0f;
Vector2 res = this->octahedron_encode();
Vector2 res = octahedron_encode();
res.y = MAX(res.y, bias);
res.y = res.y * 0.5f + 0.5f;
res.y = sign >= 0.0f ? res.y : 1 - res.y;