CoolDotty / Shader-Stacker

The GPU accelerated version of Sprite Stacking. A top-down 2.5D trick for the Godot Engine.
https://dotty.cool/Shader-Stacker/
Mozilla Public License 2.0
56 stars 7 forks source link

Order SpriteStacks by Z value #18

Closed Chownie closed 1 year ago

Chownie commented 1 year ago

Looking to fix #17

As the title says, StackCamera will use the z value from a SpriteStack for sorting.

cap

Chownie commented 1 year ago

Current issue, Sprite2Ds don't vibe with this z-sorting approach:

cap2

CoolDotty commented 1 year ago

Does it work if the Sprite2D is a child of a Reset2D node? With reset_rotation unchecked

Chownie commented 1 year ago

That does it 😄

It does produce this behaviour for a.z == b.z situations but I suppose it makes sense, it is "between" those other spritestacks. cap2

CoolDotty commented 1 year ago

Works for me!