This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
#pragma once
#include "TextureRef.h"
namespace RBX
{
class DataModel;
}
namespace RBX
{
namespace Graphics
{
class VisualEngine;
class Material;
class Water
{
public:
Water(VisualEngine* visualEngine);
~Water();
void update(DataModel* dataModel, float dt);
const shared_ptr<Material>& getLegacyMaterial();
const shared_ptr<Material>& getSmoothMaterial();
private:
enum { kAnimFrames = 24 };
VisualEngine* visualEngine;
shared_ptr<Material> legacyMaterial;
shared_ptr<Material> smoothMaterial;
TextureRef normalMaps[kAnimFrames + 1];
double currentTimeScaled;
const TextureRef& getNormalMap(unsigned int frame);
};
}
}