Closed claudeha closed 4 years ago
the glsl code you present for Center looks fine ??? I would expect that to work.
chasing a bug, just making sure it's not the test should not interfere with valid code operation
88824f6 should look like this, using continue instead of if/else
void DisplayWidget::setShaderUniforms(QOpenGLShaderProgram *shaderProg)
{
...
checkForSpecialCase(name, uniformValue);
if(uniformValue.contains("variable")) continue;
// find a value to go with the name, index in the program, may not be the same as index in our list
for( int n=0; n < vw.count(); n++) {
...
}
if(uniformValue.isEmpty()) {
uniformValue = "Unused variable";
continue;
}
QString tp = "";
...
}
will test trudy asap ;)
the glsl code you present for Center looks fine ??? I would expect that to work.
chasing a bug, just making sure it's not the test
should not interfere with valid code operation
88824f6 should look like this, using continue instead of if/else
void DisplayWidget::setShaderUniforms(QOpenGLShaderProgram *shaderProg)
{
...
checkForSpecialCase(name, uniformValue);
if(uniformValue.contains("variable")) continue;
// find a value to go with the name, index in the program, may not be the same as index in our list
for( int n=0; n < vw.count(); n++) {
...
}
if(uniformValue.isEmpty()) {
uniformValue = "Unused variable";
continue;
}
QString tp = "";
...
}
will test trudy asap ;) oops didn't click Comment!... so...
testing with the above continue code it seems to work fine
Describe the bug 88824f6c5a3da50896ec63eb68617f4a32430e49 broke dynamic-precision Camera2D in Trudy (depending on
#version
).To Reproduce Steps to reproduce the behavior:
git clone https://code.mathr.co.uk/trudy.git
/path/to/trudy/include
to the FragM include paths in the prefs/path/to/trudy/examples/MuET.frag
Expected behavior
Center
changes update the image appearanceDesktop (please complete the following information):
Additional context It worked fine with the previous commit. Trudy does do this for the
Center
uniform:which I suspect may be too clever. It worked before though, so hopefully there is a way to keep it working? What bug was the commit intending to fix?