Hi everyone, I need help to figure out something about the rendering pipeline and predicates, specifically for the Rive extension.
In my game, I have to use both sprites and rivemodels in the same space. My “player” object has a rivemodel, and all the enemies and background elements are sprites. I am using rendercam to slightly tilt the camera so my 2D elements behave like they have depth, using the method described in this forum post.
Right now, with the render script setup, rivemodels always have to be drawn in front of sprites, unless the sprites use a custom material I made that has a different predicate so they are, on the contrary, always being drawn in front of rivemodels. The problem is that rivemodels and sprites can never interact in a 2.5D fashion because they will always be drawn before or after the rivemodels.
I tried to figure out how everything worked with the documentation but I lack the some knowledge specifically about what is possible with the Rive extension. For example, is it possible to render rivemodels on the same predicate as sprite at all, or is it a technical limitation? I also wonder if swapping materials in runtime could be a solution but I prefer asking your opinion before spending 5 hours breaking my game
Thank you in advance!