2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-06-10 05:34:39 +00:00
|
|
|
|
|
|
|
#include "Graphics/CGraphics.hpp"
|
2018-10-07 02:59:17 +00:00
|
|
|
#include "boo/graphicsdev/IGraphicsDataFactory.hpp"
|
2017-06-10 05:34:39 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2017-06-10 05:34:39 +00:00
|
|
|
class CParticleSwoosh;
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CParticleSwooshShaders {
|
2017-06-10 05:34:39 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
enum class EShaderClass { Tex, NoTex };
|
|
|
|
|
|
|
|
struct Vert {
|
|
|
|
zeus::CVector3f m_pos;
|
|
|
|
zeus::CVector2f m_uv;
|
|
|
|
zeus::CColor m_color;
|
|
|
|
};
|
2017-06-10 05:34:39 +00:00
|
|
|
|
|
|
|
private:
|
2019-03-03 06:19:42 +00:00
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texZWrite;
|
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texNoZWrite;
|
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texAdditiveZWrite;
|
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_texAdditiveNoZWrite;
|
|
|
|
|
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexZWrite;
|
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexNoZWrite;
|
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexAdditiveZWrite;
|
|
|
|
static std::array<boo::ObjToken<boo::IShaderPipeline>, 2> m_noTexAdditiveNoZWrite;
|
2017-06-10 05:34:39 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
static void Initialize();
|
|
|
|
static void Shutdown();
|
|
|
|
static EShaderClass GetShaderClass(CParticleSwoosh& gen);
|
|
|
|
static void BuildShaderDataBinding(boo::IGraphicsDataFactory::Context& ctx, CParticleSwoosh& gen);
|
2017-06-10 05:34:39 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|