Skip to content

Commit

Permalink
[ocean] Fix Shannon-Nyquist sampling theorem limit.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtryan98 committed Aug 28, 2023
1 parent f8d3eb0 commit 81d50a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion owge_shaders/owge_shaders/ocean/initial_spectrum.cs.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void cs_main(uint3 id : SV_DispatchThreadID)
{
sampling_limit = true;
}
if ( (id_shifted.x == 0 && id_shifted.y == 0) || deny )
if ( (id_shifted.x == 0 && id_shifted.y == 0) || sampling_limit )
{
// We need to set the 0th wavevector to 0.
// This does not break the calculation either, as this only corresponds to the DC-part of the spectrum.
Expand Down

0 comments on commit 81d50a0

Please sign in to comment.