Octahedral Normal/Tangent Compression
Implementation of Octahedral normal compression into Godot 4.0
This commit is contained in:
parent
f2a6168414
commit
78881b3cc3
7 changed files with 112 additions and 137 deletions
|
|
@ -111,6 +111,8 @@ struct _NO_DISCARD_ Vector3 {
|
|||
|
||||
Vector2 octahedron_encode() const;
|
||||
static Vector3 octahedron_decode(const Vector2 &p_oct);
|
||||
Vector2 octahedron_tangent_encode(const float sign) const;
|
||||
static Vector3 octahedron_tangent_decode(const Vector2 &p_oct, float *sign);
|
||||
|
||||
_FORCE_INLINE_ Vector3 cross(const Vector3 &p_with) const;
|
||||
_FORCE_INLINE_ real_t dot(const Vector3 &p_with) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue