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
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CParticleSwoosh;
|
|
|
|
|
|
|
|
class CParticleSwooshShaders
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum class EShaderClass
|
|
|
|
{
|
|
|
|
Tex,
|
|
|
|
NoTex
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Vert
|
|
|
|
{
|
|
|
|
zeus::CVector3f m_pos;
|
|
|
|
zeus::CVector2f m_uv;
|
|
|
|
zeus::CColor m_color;
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
2017-11-05 06:17:12 +00:00
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texNoZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texAdditiveZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_texAdditiveNoZWrite;
|
2017-06-10 05:34:39 +00:00
|
|
|
|
2017-11-05 06:17:12 +00:00
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexNoZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexAdditiveZWrite;
|
|
|
|
static boo::ObjToken<boo::IShaderPipeline> m_noTexAdditiveNoZWrite;
|
2017-06-10 05:34:39 +00:00
|
|
|
|
|
|
|
public:
|
2018-10-07 02:59:17 +00:00
|
|
|
static void Initialize();
|
|
|
|
static void Shutdown();
|
2017-06-10 05:34:39 +00:00
|
|
|
static EShaderClass GetShaderClass(CParticleSwoosh& gen);
|
|
|
|
static void BuildShaderDataBinding(boo::IGraphicsDataFactory::Context& ctx, CParticleSwoosh& gen);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|