pixijs / pixijs.com

https://pixijs.com
41 stars 37 forks source link

Unnecessary width and height options in DisplacementFilter constructor in fish-pond tutorial step 5 #135

Closed Busyrev closed 4 days ago

Busyrev commented 1 week ago

On step 5 https://pixijs.com/8.x/tutorials/fish-pond#5 code:

// Create a displacement filter using the sprite texture.
    const filter = new DisplacementFilter({
        sprite,
        scale: 50,
        width: app.screen.width,
        height: app.screen.height,
    });

Found no information about width and height options in docs and sources. Removing this lines makes no effect, everything still works well.

Zyie commented 4 days ago

fixed in #138