2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 06:27:43 +00:00

Implement Metal lighting shader

This commit is contained in:
Jack Andersen
2016-04-03 20:16:03 -10:00
parent 408ce2ca8b
commit 9f0e9a808b
10 changed files with 57 additions and 13 deletions

View File

@@ -95,7 +95,7 @@ void CTextRenderBuffer::CommitResources()
boo::ITexture* texs[] = {chs.m_font.GetObj()->GetTexture()->GetBooTexture()};
chs.m_dataBinding = ctx.newShaderDataBinding(g_TextShaderPipeline, vFmt,
nullptr, chs.m_instBuf, nullptr,
1, uniforms, 1, texs);
1, uniforms, nullptr, 1, texs);
}
for (BooImage& img : m_images)
@@ -126,7 +126,7 @@ void CTextRenderBuffer::CommitResources()
boo::ITexture* texs[] = {tex->GetBooTexture()};
img.m_dataBinding.push_back(ctx.newShaderDataBinding(g_TextImageShaderPipeline, vFmt,
nullptr, img.m_instBuf, nullptr,
1, uniforms, 1, texs));
1, uniforms, nullptr, 1, texs));
}
}
return true;