You'd need to have your application (the c++ code) handle this. It's quite doable if you have access to the shader loading code, I remember I did something similar back when I still programmed c++. Unfortunately that's not really a possibility with most applications.
Hi kodde, as far as I know, you cannot make the code check if a texture has been loaded. The workaround I adopted, and I guess is pretty standard, is to use a checkbutton widget in the UI. If it is checked the texture is taken into account, otherwise do the standard calculations without considering it. bool…