mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-16 17:37:03 +00:00
CAABoxShader: Simplify pipeline attributes
This commit is contained in:
@@ -11,8 +11,7 @@ using namespace hsh::pipeline;
|
|||||||
|
|
||||||
template <bool zOnly>
|
template <bool zOnly>
|
||||||
struct CAABoxShaderPipeline
|
struct CAABoxShaderPipeline
|
||||||
: pipeline<topology<hsh::TriangleStrip>, std::conditional_t<zOnly, NoColorAttachment<>, BlendAttachment<>>,
|
: pipeline<std::conditional_t<zOnly, NoColorAttachment<>, BlendAttachment<>>, depth_compare<hsh::LEqual>> {
|
||||||
depth_compare<hsh::LEqual>, depth_write<true>, cull_mode<hsh::CullNone>> {
|
|
||||||
CAABoxShaderPipeline(hsh::vertex_buffer<CAABoxShader::Vert> vbo, hsh::uniform_buffer<CAABoxShader::Uniform> uniBuf) {
|
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->position = uniBuf->m_xf * hsh::float4(vbo->m_pos, 1.f);
|
||||||
this->color_out[0] = uniBuf->m_color;
|
this->color_out[0] = uniBuf->m_color;
|
||||||
|
|||||||
Reference in New Issue
Block a user