The recommended way of turning off an effect and restoring standard DBPro texturing etc is to use
set object effect objID, 0
This works in some cases but not in others. The attached projects demonstrate the problem.
The first project, "turn off shader problem.dbpro", shows the shader being turned off correctly using the recommended procedure.
The second project, "turn off shader problem failing version.dbpro", shows what happens when the command fails - i.e. the object just turns white instead of showing its new texture.
The third project, "turn off shader problem failing v2.dbpro", shows the same problem when several objects are applied with the same shader - but only one shader is used.