mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-06 21:57:47 +00:00
GEEKING
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user