metaforce/Runtime/Graphics/Shaders/CEnvFxShaders.hpp

28 lines
522 B
C++
Raw Normal View History

2018-11-02 08:16:16 +00:00
#pragma once
#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 {
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 {
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
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