Color nodes based on intensity.

This commit is contained in:
2017-11-16 16:21:21 +01:00
parent f1d2776fce
commit 8eba3ec063
3 changed files with 18 additions and 1 deletions

View File

@@ -102,3 +102,9 @@ GLuint fmri::compileShader(GLenum type, char const *source)
abort();
}
}
void ::fmri::setColorFromIntensity(float i)
{
// TODO: something more expressive.
glColor3f(i, i, i);
}