Skip to content

Commit

Permalink
Traktor: Reduced resolution of ocean a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed May 21, 2024
1 parent b8b51dd commit 8041849
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/Terrain/OceanComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ struct OceanVertex
};
#pragma pack()

const uint32_t c_gridSize = 1024;
const uint32_t c_gridInfSize = 128;
const uint32_t c_gridSize = 512;
const uint32_t c_gridInfSize = c_gridSize / 8;
const uint32_t c_gridCells = (c_gridSize - 1) * (c_gridSize - 1);

}
Expand Down Expand Up @@ -204,7 +204,7 @@ void OceanComponent::setup(
for (int32_t i = 0; i < sizeof_array(m_waveTextures); ++i)
{
Ref< render::RenderPass > rp = new render::RenderPass(L"Ocean compute waves");
rp->addBuild([=](const render::RenderGraph&, render::RenderContext* renderContext) {
rp->addBuild([=, this](const render::RenderGraph&, render::RenderContext* renderContext) {
auto renderBlock = renderContext->allocNamed< render::ComputeRenderBlock >(str(L"Ocean wave %d", i));
renderBlock->program = m_shaderWave->getProgram().program;
renderBlock->workSize[0] = 512;
Expand Down

0 comments on commit 8041849

Please sign in to comment.