mirror of
https://github.com/zeldaret/ss
synced 2026-09-03 01:54:18 -04:00
m_shadow improvements
This commit is contained in:
@@ -189,7 +189,7 @@ public:
|
||||
virtual int getType() const override;
|
||||
/* 0x24 */ virtual void draw(const mMtx_c &);
|
||||
|
||||
void calc(mMtx_c, mMtx_c &);
|
||||
void calc(mMtx_c, mMtx_c &) const;
|
||||
|
||||
/* 0x18 */ mMtx_c mMtx;
|
||||
/* 0x48 */ f32 field_0x48;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "common.h"
|
||||
#include "egg/math/eggMatrix.h"
|
||||
#include "m/m_angle.h"
|
||||
#include "m/m_quat.h"
|
||||
#include "m/m_vec.h"
|
||||
#include "nw4r/types_nw4r.h"
|
||||
#include "rvl/MTX/mtx.h"
|
||||
@@ -82,6 +83,10 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
void applyQuat(mQuat_c &quat) {
|
||||
PSMTXMultVec(m, quat.v, quat.v);
|
||||
}
|
||||
|
||||
public:
|
||||
static mMtx_c Identity;
|
||||
};
|
||||
|
||||
@@ -8,12 +8,20 @@ class mQuat_c : public EGG::Quatf {
|
||||
public:
|
||||
mQuat_c() {}
|
||||
mQuat_c(f32 x, f32 y, f32 z, f32 w) : EGG::Quatf(w, x, y, z) {}
|
||||
mQuat_c(const mQuat_c &other) : EGG::Quatf(other.w, other.v) {}
|
||||
|
||||
mQuat_c &operator=(const EGG::Quatf &rhs) {
|
||||
v = rhs.v;
|
||||
w = rhs.w;
|
||||
return *this;
|
||||
}
|
||||
|
||||
mQuat_c &operator=(const mQuat_c &rhs) {
|
||||
v = rhs.v;
|
||||
w = rhs.w;
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool Set(const mVec3_c &, const mVec3_c &);
|
||||
void fn_802F2780(const mQuat_c &other);
|
||||
bool fn_802F2450(const mVec3_c &, const mVec3_c &, f32);
|
||||
|
||||
Reference in New Issue
Block a user