2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2018-06-07 04:43:26 +00:00
|
|
|
|
2019-09-22 21:52:05 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/GCNTypes.hpp"
|
|
|
|
#include "Runtime/World/CFluidPlaneCPU.hpp"
|
2018-06-07 04:43:26 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2018-06-07 04:43:26 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CFluidPlaneGPU final : public CFluidPlaneCPU {
|
2018-06-07 04:43:26 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CFluidPlaneGPU(CAssetId texPattern1, CAssetId texPattern2, CAssetId texColor, CAssetId bumpMap, CAssetId envMap,
|
|
|
|
CAssetId envBumpMap, CAssetId lightMap, float unitsPerLightmapTexel, float tileSize,
|
|
|
|
u32 tileSubdivisions, EFluidType fluidType, float alpha, const zeus::CVector3f& bumpLightDir,
|
|
|
|
float bumpScale, const CFluidUVMotion& mot, float turbSpeed, float turbDistance, float turbFreqMax,
|
|
|
|
float turbFreqMin, float turbPhaseMax, float turbPhaseMin, float turbAmplitudeMax,
|
|
|
|
float turbAmplitudeMin, float specularMin, float specularMax, float reflectionBlend,
|
|
|
|
float reflectionSize, float rippleIntensity, u32 maxVertCount);
|
2018-06-07 04:43:26 +00:00
|
|
|
|
2020-04-12 13:52:36 +00:00
|
|
|
void RenderStripWithRipples(float curY, const Heights& heights, const Flags& flags, int startYDiv,
|
|
|
|
const CFluidPlaneRender::SPatchInfo& info, std::vector<CFluidPlaneShader::Vertex>& vOut,
|
2020-04-06 09:29:05 +00:00
|
|
|
std::vector<CFluidPlaneShader::PatchVertex>& pvOut) override;
|
2018-06-07 04:43:26 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|