I'm using a simple shader to colour an object when it's selected (green for selected, red for invalid). When the object is deselected, I want to turn the shading off. However, there doesn't seem to be a command that actually does this.
dbSetShadingOff() doesn't exist in GDK
dbSetPixelShaderOff() etc. don't work with effect commands.
One solution that works is to simply dbSetObjectEffect() to effect 0. Since that effect doesn't exist, the object returns to normal. The problem this causes is, when I save the object and reload it, it is invisible and can't be brought back to life. So I need a way of clearing the shading data from the object, so it's normal once more.
I've been using dbGetObject() to browse object properties, and there is some access to meshes and effect names. Perhaps this is a solution? Anyone know?