kopia lustrzana https://github.com/f4exb/sdrangel
3D Spectrogram: Use texture height rather than fft size for clamping limit
rodzic
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_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)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue