2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2017-06-10 05:34:39 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <array>
|
|
|
|
|
2020-09-28 20:54:40 +00:00
|
|
|
#include "hsh/hsh.h"
|
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 {
|
2020-09-28 20:54:40 +00:00
|
|
|
hsh::float3 m_pos;
|
|
|
|
hsh::float2 m_uv;
|
|
|
|
hsh::float4 m_color;
|
2018-12-08 05:30:43 +00:00
|
|
|
};
|
2017-06-10 05:34:39 +00:00
|
|
|
|
2020-09-28 20:54:40 +00:00
|
|
|
struct Uniform {
|
|
|
|
hsh::float4x4 m_xf;
|
|
|
|
};
|
2017-06-10 05:34:39 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
static EShaderClass GetShaderClass(CParticleSwoosh& gen);
|
2020-09-28 20:54:40 +00:00
|
|
|
static void BuildShaderDataBinding(CParticleSwoosh& gen);
|
2017-06-10 05:34:39 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|