metaforce/Runtime/Graphics/Shaders/CEnvFxShaders.hpp

42 lines
950 B
C++
Raw Normal View History

2018-11-02 08:16:16 +00:00
#pragma once
#include <array>
#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 {
std::array<zeus::CVector3f, 4> positions;
2018-12-08 05:30:43 +00:00
zeus::CColor color;
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