jnsmalm / pixi3d

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

Sprite3D.zIndex should set internal ProjectionSprite.zIndex #156

Closed lovelle-cardoso closed 1 year ago

lovelle-cardoso commented 1 year ago

The standard pipeline sorts its ProjectionSprites by zIndex, but as far as I can tell, there is no way to set this internal ProjectionSprite zIndex value through Sprite3D.

jnsmalm commented 1 year ago

I think zIndex property on Sprite3D should instead be called renderSortOrder for two reasons.

lovelle-cardoso commented 1 year ago

@jnsmalm K renamed!

jnsmalm commented 1 year ago

Thanks for this update!