jnsmalm / pixi3d

The 3D renderer for PixiJS. Seamless integration with 2D applications.
https://pixi3d.org
MIT License
759 stars 44 forks source link

Pixi deprecation warning on render() #79

Closed Friksel closed 2 years ago

Friksel commented 2 years ago

Using PostProcessingSprite pixi throws a deprecation Warning:

Renderer#render arguments changed, use options instead.Deprecated since v6.0.0

Looks liks in this file: https://github.com/jnsmalm/pixi3d/blob/develop/src/sprite/post-processing-sprite.ts on line 85

this.renderer.render(object, this._renderTexture)

the second argument needs to change to an options object.

pixi3d: 1.2.0

jnsmalm commented 2 years ago

Thanks! This is because I want to support PixiJS from v5.3 and since then the params has been changed. I have ignored it because it's just a warning. To fix this a check is needed which verifies the version of PixiJS is being used, I have not come around and done this yet.

jnsmalm commented 2 years ago

This will be fixed in next release, thanks for reporting.

Friksel commented 2 years ago

@jnsmalm Thanks!