CAABoxShader: Simplify pipeline attributes

This commit is contained in:
Luke Street 2020-09-29 01:26:51 -04:00
parent f1d777f172
commit 68726f2783
1 changed files with 1 additions and 2 deletions

View File

@ -11,8 +11,7 @@ using namespace hsh::pipeline;
template <bool zOnly>
struct CAABoxShaderPipeline
: pipeline<topology<hsh::TriangleStrip>, std::conditional_t<zOnly, NoColorAttachment<>, BlendAttachment<>>,
depth_compare<hsh::LEqual>, depth_write<true>, cull_mode<hsh::CullNone>> {
: pipeline<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;