Post Process Effect, code only engine api

My project imports the playcanvas engine. I am attempting to add a post-process effect, any will do to start.


I am attempting to add one in this manner:'script');'horizontalTiltShift');

The script is being initialized, but none of them look correct. The Vignette is almost completely black, the Sapia completely white, and the horizontaltiltshift is a bunch of banded color lines across the screen.

Thank you for ideas, suggestions.

Adding it like this instead worked:

var vignette = new pc.VignetteEffect(this.application.graphicsDevice);
vignette.darkness = 2;;