Skip to content

Commit

Permalink
Traktor: Fixed old ocean shader.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed May 20, 2024
1 parent eafa5c4 commit f96e6c0
Show file tree
Hide file tree
Showing 6 changed files with 2,231 additions and 1,408 deletions.
4 changes: 2 additions & 2 deletions code/Terrain/OceanComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ bool OceanComponent::create(resource::IResourceManager* resourceManager, render:

vertex->pos[0] = fx;
vertex->pos[1] = fz;
vertex->edge = f; // lerp(100.0f, 10000.0f, f);
vertex->edge = lerp(100.0f, 10000.0f, f);

vertex++;
}
Expand Down Expand Up @@ -225,7 +225,7 @@ void OceanComponent::build(
bool reflectionEnable
)
{
if (!m_owner)
if (!m_owner || worldRenderView.getSnapshot())
return;

bool haveTerrain = false;
Expand Down
Loading

0 comments on commit f96e6c0

Please sign in to comment.