Use and apply gstate.isMaterialAmbient/Specualar/DiffuseEnabled()