mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 16:08:39 -05:00
3D Spectrogram: Use texture height rather than fft size for clamping limit
This commit is contained in:
parent
e48551a837
commit
4df26f7140
@ -419,7 +419,7 @@ void GLShaderSpectrogram::drawSurface(SpectrumSettings::SpectrogramStyle style,
|
|||||||
program->setUniformValue(m_dataTextureLoc, 0); // set uniform to texture unit?
|
program->setUniformValue(m_dataTextureLoc, 0); // set uniform to texture unit?
|
||||||
program->setUniformValue(m_colorMapLoc, 1);
|
program->setUniformValue(m_colorMapLoc, 1);
|
||||||
|
|
||||||
program->setUniformValue(m_limitLoc, 1.5f*1.0f/(float)(m_gridElements));
|
program->setUniformValue(m_limitLoc, 1.4f*1.0f/(float)(m_texture->height()));
|
||||||
|
|
||||||
if (style == SpectrumSettings::Outline)
|
if (style == SpectrumSettings::Outline)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user