2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 17:44:56 +00:00

Scan visor and waterbox fix

This commit is contained in:
Jack Andersen
2018-10-16 17:26:55 -10:00
parent b139e1c000
commit 8d839d8a17
7 changed files with 40 additions and 29 deletions

View File

@@ -59,7 +59,7 @@ class Shader_CFluidPlaneShader : public hecl::TessellationShader
const SFluidPlaneShaderInfo& m_info;
public:
Shader_CFluidPlaneShader(const SFluidPlaneShaderInfo& in, bool tessellation)
: m_info(in), VtxFmt(tessellation ? TessVtxFmtElems : VtxFmtElems),
: m_info(in), VtxFmt(tessellation ? boo::VertexFormatInfo(TessVtxFmtElems) : boo::VertexFormatInfo(VtxFmtElems)),
PipelineInfo({in.m_additive ? boo::BlendFactor::One : boo::BlendFactor::SrcAlpha,
in.m_additive ? boo::BlendFactor::One : boo::BlendFactor::InvSrcAlpha,
boo::Primitive::TriStrips, boo::ZTest::LEqual, false, true, false,
@@ -89,7 +89,7 @@ class Shader_CFluidPlaneDoorShader : public hecl::GeneralShader
const SFluidPlaneDoorShaderInfo& m_info;
public:
explicit Shader_CFluidPlaneDoorShader(const SFluidPlaneDoorShaderInfo& in)
: m_info(in), VtxFmt(Shader_CFluidPlaneShader::VtxFmtElems),
: m_info(in), VtxFmt(boo::VertexFormatInfo(Shader_CFluidPlaneShader::VtxFmtElems)),
PipelineInfo({boo::BlendFactor::SrcAlpha, boo::BlendFactor::InvSrcAlpha,
boo::Primitive::TriStrips, boo::ZTest::LEqual, false, true, false,
boo::CullMode::None}) {}