2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-19 04:45:23 +00:00

CEnergyBarShader: Convert to hsh pipeline

This commit is contained in:
2020-09-29 18:21:20 -04:00
parent 2d786e4318
commit c596834fdf
6 changed files with 54 additions and 54 deletions

View File

@@ -11,7 +11,8 @@ using namespace hsh::pipeline;
template <bool zOnly>
struct CAABoxShaderPipeline
: pipeline<std::conditional_t<zOnly, NoColorAttachment<>, BlendAttachment<>>, depth_compare<hsh::LEqual>> {
: pipeline<topology<hsh::TriangleStrip>, std::conditional_t<zOnly, NoColorAttachment<>, BlendAttachment<>>,
depth_compare<hsh::LEqual>> {
CAABoxShaderPipeline(hsh::vertex_buffer<CAABoxShader::Vert> vbo, hsh::uniform_buffer<CAABoxShader::Uniform> uniBuf) {
this->position = uniBuf->m_xf * hsh::float4(vbo->m_pos, 1.f);
this->color_out[0] = uniBuf->m_color;