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