2018-11-02 08:16:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-09-29 02:22:12 +00:00
|
|
|
#include <array>
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2018-11-02 08:16:16 +00:00
|
|
|
class CEnvFxManager;
|
|
|
|
class CEnvFxManagerGrid;
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CEnvFxShaders {
|
2018-11-02 08:16:16 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
struct Instance {
|
2020-09-28 20:54:40 +00:00
|
|
|
std::array<hsh::float3, 4> positions;
|
|
|
|
hsh::float4 color;
|
|
|
|
std::array<hsh::float2, 4> uvs;
|
2018-12-08 05:30:43 +00:00
|
|
|
};
|
|
|
|
struct Uniform {
|
2020-09-28 20:54:40 +00:00
|
|
|
hsh::float4x4 mv;
|
|
|
|
hsh::float4x4 proj;
|
|
|
|
hsh::float4x4 envMtx;
|
|
|
|
hsh::float4 moduColor;
|
2018-12-08 05:30:43 +00:00
|
|
|
};
|
2018-11-02 08:16:16 +00:00
|
|
|
|
2020-09-28 20:54:40 +00:00
|
|
|
static void BuildShaderDataBinding(CEnvFxManager& fxMgr,
|
2018-12-08 05:30:43 +00:00
|
|
|
CEnvFxManagerGrid& grid);
|
2018-11-02 08:16:16 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|