2018-11-02 08:16:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-09-29 02:22:12 +00:00
|
|
|
#include <array>
|
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
|
2019-09-29 00:30:53 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <zeus/CColor.hpp>
|
|
|
|
#include <zeus/CMatrix4f.hpp>
|
|
|
|
#include <zeus/CVector2f.hpp>
|
|
|
|
#include <zeus/CVector3f.hpp>
|
2018-11-02 08:16:16 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2018-11-02 08:16:16 +00:00
|
|
|
class CEnvFxManager;
|
|
|
|
class CEnvFxManagerGrid;
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CEnvFxShaders {
|
2018-11-02 08:16:16 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
struct Instance {
|
2019-09-29 02:22:12 +00:00
|
|
|
std::array<zeus::CVector3f, 4> positions;
|
2018-12-08 05:30:43 +00:00
|
|
|
zeus::CColor color;
|
2019-09-29 02:22:12 +00:00
|
|
|
std::array<zeus::CVector2f, 4> uvs;
|
2018-12-08 05:30:43 +00:00
|
|
|
};
|
|
|
|
struct Uniform {
|
|
|
|
zeus::CMatrix4f mv;
|
|
|
|
zeus::CMatrix4f proj;
|
|
|
|
zeus::CMatrix4f envMtx;
|
|
|
|
zeus::CColor moduColor;
|
|
|
|
};
|
2018-11-02 08:16:16 +00:00
|
|
|
|
|
|
|
private:
|
2018-12-08 05:30:43 +00:00
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_snowPipeline;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_underwaterPipeline;
|
2018-11-02 08:16:16 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
static void Initialize();
|
|
|
|
static void Shutdown();
|
|
|
|
static void BuildShaderDataBinding(boo::IGraphicsDataFactory::Context& ctx, CEnvFxManager& fxMgr,
|
|
|
|
CEnvFxManagerGrid& grid);
|
2018-11-02 08:16:16 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|