Closed taulant closed 2 months ago
@gammafp Any idea how to import a shader into the Phaser 3 with typescript?
@photonstorm Are there any more recent pipeline examples of this that follow the pipeline type object structure specified in Phaser 3.70.0
?
🦗
I am also currently running into this issue. Any new developments?
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master
branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
Version
Description
There seems to be a type mismatch between most pipeline examples posted online and what is actually supported in phaser with typescript.
Example Test Code
The code examples that use pipelines are from this repo. https://github.com/phaserjs/examples
In this codebase you can import multiple pipelines into the
config
variable.When I try to import a pipeline through this syntax
pipeline: { ScalinePostFX, HueRotatePostFX },
I am getting an error regarding the pipeline type .The type of the pipeline
Phaser.Types.Core.PipelineConfig
is supposed to look like this and it implies only one pipeline can be assigned to the configuration.I've also tried assigning one pipeline like it is outlined in the type but it still doesn't work.
This throws this error:
Additional Information
All the shaders pipelines I used are also in the examples repo. These are not custom pipelines.
Was this a recent architectural change that hasn't made it yet to examples posted online? Or am I missing something very essential?
Any help would be appreciated.