2017-06-10 05:34:39 +00:00
|
|
|
#ifndef __URDE_CPARTICLESWOOSHSHADERS_HPP__
|
|
|
|
#define __URDE_CPARTICLESWOOSHSHADERS_HPP__
|
|
|
|
|
|
|
|
#include "TShader.hpp"
|
|
|
|
#include "Graphics/CGraphics.hpp"
|
|
|
|
#include "boo/graphicsdev/GL.hpp"
|
|
|
|
#include "boo/graphicsdev/D3D.hpp"
|
|
|
|
#include "boo/graphicsdev/Metal.hpp"
|
|
|
|
#include "boo/graphicsdev/Vulkan.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
class CParticleSwoosh;
|
|
|
|
|
|
|
|
class CParticleSwooshShaders
|
|
|
|
{
|
|
|
|
friend struct OGLParticleSwooshDataBindingFactory;
|
|
|
|
friend struct VulkanParticleSwooshDataBindingFactory;
|
|
|
|
friend struct D3DParticleSwooshDataBindingFactory;
|
|
|
|
friend struct MetalParticleSwooshDataBindingFactory;
|
|
|
|
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
|
|
|
|
2017-11-05 06:17:12 +00:00
|
|
|
static boo::ObjToken<boo::IVertexFormat> m_vtxFormat; /* No OpenGL */
|
2017-06-10 05:34:39 +00:00
|
|
|
|
|
|
|
CParticleSwoosh& m_gen;
|
2017-11-05 06:17:12 +00:00
|
|
|
boo::ObjToken<boo::IShaderPipeline> m_pipeline;
|
|
|
|
CParticleSwooshShaders(CParticleSwoosh& gen, const boo::ObjToken<boo::IShaderPipeline>& pipeline)
|
2017-06-10 05:34:39 +00:00
|
|
|
: m_gen(gen), m_pipeline(pipeline) {}
|
|
|
|
|
|
|
|
public:
|
|
|
|
static EShaderClass GetShaderClass(CParticleSwoosh& gen);
|
|
|
|
static void BuildShaderDataBinding(boo::IGraphicsDataFactory::Context& ctx, CParticleSwoosh& gen);
|
|
|
|
|
|
|
|
using _CLS = CParticleSwooshShaders;
|
|
|
|
#include "TShaderDecl.hpp"
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_CPARTICLESWOOSHSHADERS_HPP__
|