2018-11-02 08:16:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include "Runtime/Graphics/CGraphics.hpp"
|
|
|
|
|
|
|
|
#include <boo/graphicsdev/IGraphicsDataFactory.hpp>
|
|
|
|
#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 {
|
|
|
|
zeus::CVector3f positions[4];
|
|
|
|
zeus::CColor color;
|
|
|
|
zeus::CVector2f uvs[4];
|
|
|
|
};
|
|
|
|
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
|