added idBufId mode for getting shape + shadow ID