Use the TwistFilter on an OffscreenCanvas with Pixi
Details:
The class TiltShiftAxisFilter is accessing the window object to get the innerHeight and innerWidth, which doesn't exist on a worker thread, thus exception.
I also experience the same issue with BevelFilter (which does not access window object itself) in webworker. My temporary fix was to just copy BevelFilter into my project and use that instead of the original.
Reproduce:
Details:
The class TiltShiftAxisFilter is accessing the window object to get the innerHeight and innerWidth, which doesn't exist on a worker thread, thus exception.