2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 05:47:43 +00:00

Proper interleaved rendering of indirect-textured particle instances

This commit is contained in:
Jack Andersen
2018-11-04 21:25:28 -10:00
parent d6051f8808
commit 3ef7386978
4 changed files with 10 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ void CEnvFxShaders::BuildShaderDataBinding(boo::IGraphicsDataFactory::Context& c
boo::ObjToken<boo::IGraphicsBuffer> uniforms[] = {uBufInfo.first.get(),
fxMgr.m_fogUniformBuf.get()};
size_t ubufOffsets[] = {uBufInfo.second, 0};
size_t ubufSizes[] = {256, 256};
size_t ubufSizes[] = {sizeof(CEnvFxShaders::Uniform), sizeof(CGraphics::g_Fog)};
boo::PipelineStage uniformStages[] = {boo::PipelineStage::Vertex, boo::PipelineStage::Fragment};
boo::ObjToken<boo::ITexture> textures[] = {fxMgr.xb74_txtrSnowFlake->GetBooTexture(),
fxMgr.x40_txtrEnvGradient->GetBooTexture()};