metaforce/Runtime/Graphics/Shaders/CEnvFxShaders.hpp

42 lines
925 B
C++
Raw Normal View History

2018-11-02 08:16:16 +00:00
#pragma once
#include <array>
2022-02-01 00:06:54 +00:00
//#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
2021-04-10 08:42:06 +00:00
namespace metaforce {
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:
2022-02-01 00:06:54 +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();
2022-02-01 00:06:54 +00:00
static void BuildShaderDataBinding(CEnvFxManager& fxMgr,
2018-12-08 05:30:43 +00:00
CEnvFxManagerGrid& grid);
2018-11-02 08:16:16 +00:00
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce