metaforce/Runtime/Graphics/Shaders/CEnvFxShaders.hpp

36 lines
824 B
C++
Raw Normal View History

2018-11-02 08:16:16 +00:00
#pragma once
#include "Graphics/CGraphics.hpp"
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
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