2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-07-30 11:00:30 +00:00
|
|
|
|
2019-09-22 21:52:05 +00:00
|
|
|
#include <optional>
|
|
|
|
|
|
|
|
#include "Runtime/Graphics/Shaders/CFluidPlaneShader.hpp"
|
|
|
|
#include "Runtime/World/CFluidPlane.hpp"
|
2017-07-30 11:00:30 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
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,
|
|
|
|
const zeus::CAABox& aabb, bool noNormals) const;
|
2017-08-14 03:55:06 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CFluidPlaneDoor(CAssetId patternTex1, CAssetId patternTex2, CAssetId colorTex, float tileSize, u32 tileSubdivisions,
|
|
|
|
EFluidType fluidType, float alpha, const CFluidUVMotion& uvMotion);
|
2019-08-09 12:45:18 +00:00
|
|
|
void AddRipple(float mag, TUniqueId rippler, const zeus::CVector3f& center, CScriptWater& water,
|
|
|
|
CStateManager& mgr) override {}
|
2018-12-08 05:30:43 +00:00
|
|
|
void AddRipple(float intensity, TUniqueId rippler, const zeus::CVector3f& center, const zeus::CVector3f& velocity,
|
2019-08-09 12:45:18 +00:00
|
|
|
const CScriptWater& water, CStateManager& mgr, const zeus::CVector3f& upVec) override {}
|
|
|
|
void AddRipple(const CRipple& ripple, const CScriptWater& water, CStateManager& mgr) override {}
|
2017-08-14 03:55:06 +00:00
|
|
|
|
2018-12-08 05:30:43 +00: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 12:45:18 +00:00
|
|
|
const std::optional<CRippleManager>& rippleManager, TUniqueId waterId, const bool* gridFlags,
|
|
|
|
u32 gridDimX, u32 gridDimY, const zeus::CVector3f& areaCenter) const override;
|
2017-07-30 11:00:30 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|