metaforce/Runtime/Graphics/CVertexMorphEffect.hpp

38 lines
1.0 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
#include <utility>
#include <vector>
#include "Runtime/CToken.hpp"
#include "Runtime/Character/CPoseAsTransforms.hpp"
#include "Runtime/Graphics/CCubeModel.hpp"
#include <zeus/CUnitVector.hpp>
#include <zeus/CVector3f.hpp>
2021-04-10 08:42:06 +00:00
namespace metaforce {
2018-11-05 06:12:53 +00:00
class CRandom16;
class CSkinRules;
struct SSkinningWorkspace;
2018-12-08 05:30:43 +00:00
class CVertexMorphEffect {
zeus::CUnitVector3f x0_dir;
zeus::CVector3f xc_pos;
float x18_duration;
float x1c_elapsed = 0.f;
2018-12-08 05:30:43 +00:00
float x20_diagExtent;
CRandom16& x24_random;
std::vector<u32> x28_indices;
std::vector<float> x38_floats;
2018-12-08 05:30:43 +00:00
public:
CVertexMorphEffect(const zeus::CUnitVector3f& dir, const zeus::CVector3f& pos, float duration, float diagExtent,
2018-12-08 05:30:43 +00:00
CRandom16& random);
void MorphVertices(SSkinningWorkspace& workspace, TConstVectorRef averagedNormals,
TLockedToken<CSkinRules>& skinRules, const CPoseAsTransforms& pose, u32 vertexCount);
void Reset(const zeus::CVector3f& dir, const zeus::CVector3f& pos, float duration);
void Update(float dt);
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce