2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2017-07-30 04:00:30 -07:00
|
|
|
|
2019-09-22 14:52:05 -07:00
|
|
|
#include <optional>
|
|
|
|
|
|
|
|
#include "Runtime/Graphics/Shaders/CFluidPlaneShader.hpp"
|
|
|
|
#include "Runtime/World/CFluidPlane.hpp"
|
2017-07-30 04:00:30 -07:00
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
namespace metaforce {
|
2018-12-07 21:30:43 -08:00
|
|
|
class CFluidPlaneDoor final : public CFluidPlane {
|
|
|
|
float xa0_tileSize;
|
|
|
|
int xa4_tileSubdivisions;
|
|
|
|
float xa8_rippleResolution;
|
|
|
|
|
|
|
|
CFluidPlaneShader::RenderSetupInfo RenderSetup(const CStateManager& mgr, float alpha, const zeus::CTransform& xf,
|
2020-04-05 23:15:37 -07:00
|
|
|
const zeus::CAABox& aabb, bool noNormals);
|
2017-08-13 20:55:06 -07:00
|
|
|
|
|
|
|
public:
|
2018-12-07 21:30:43 -08:00
|
|
|
CFluidPlaneDoor(CAssetId patternTex1, CAssetId patternTex2, CAssetId colorTex, float tileSize, u32 tileSubdivisions,
|
|
|
|
EFluidType fluidType, float alpha, const CFluidUVMotion& uvMotion);
|
2019-08-09 05:45:18 -07:00
|
|
|
void AddRipple(float mag, TUniqueId rippler, const zeus::CVector3f& center, CScriptWater& water,
|
|
|
|
CStateManager& mgr) override {}
|
2018-12-07 21:30:43 -08:00
|
|
|
void AddRipple(float intensity, TUniqueId rippler, const zeus::CVector3f& center, const zeus::CVector3f& velocity,
|
2019-08-09 05:45:18 -07:00
|
|
|
const CScriptWater& water, CStateManager& mgr, const zeus::CVector3f& upVec) override {}
|
|
|
|
void AddRipple(const CRipple& ripple, const CScriptWater& water, CStateManager& mgr) override {}
|
2017-08-13 20:55:06 -07:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
void Render(const CStateManager& mgr, float alpha, const zeus::CAABox& aabb, const zeus::CTransform& xf,
|
|
|
|
const zeus::CTransform& areaXf, bool noNormals, const zeus::CFrustum& frustum,
|
2019-08-09 05:45:18 -07:00
|
|
|
const std::optional<CRippleManager>& rippleManager, TUniqueId waterId, const bool* gridFlags,
|
2020-04-05 23:15:37 -07:00
|
|
|
u32 gridDimX, u32 gridDimY, const zeus::CVector3f& areaCenter) override;
|
2017-07-30 04:00:30 -07:00
|
|
|
};
|
|
|
|
|
2021-04-10 01:42:06 -07:00
|
|
|
} // namespace metaforce
|