Devkure Yeah the post processing shader might not play nice with billboards. For debugging, you can try to render the normal texture directly onto the screen to see how billboards appear there. Also try to billboard a simple shape texture, e.g. a single circle, to see if it gets outlined correctly.

    xyz Okay, so i have recorded how it looks in the engine:

    I will further try to fiddle around with the foliage mesh and such, or maybe even try my luck with the outline shader. The current foliage mesh is this blob in the end.

    Thats the 3d object as seen in blender:
    ![

    The polycount is a bit high, but as i said - i dont know much about shaders, thats why i dont wanna make any assumptions...

    • xyz replied to this.

      Devkure What happens if you don't put a transparent texture on the bush?

        xyz Pretty much the same effect. It goes black at certain angles and distance. I think im sure its because of the outline shader, because i tried putting a different one in its place - and it worked fine (although, the effect isnt as nice as this one...)

        xyz Update. I have tried another outline shader, by reducing normal and depth thresholds respectively i was able to replicate the effect. Seems like the best course of actionwould be to separate these effects. You have mentioned previously that it can be achieved with separating it into two different subviewports? Correct? "render outlined and non-outlined things into separate viewports and do a depth-composite". Can you please expand on that idea? As of right now i have everything placed in a subviewport, that is placed in SubViewportContainer with "Stretch" on and "Stretch Shrink" set to three (to imitate pixelart)

        ![

        • xyz replied to this.

          Devkure by reducing normal and depth thresholds respectively

          Why not just adjust those thresholds to give acceptable results?

            xyz i tried fiddling around with that, unfortunately with no effect... The outline is messing the bushes up making them look weird, unfortunately - and if i reduce too much, then outline isnt looking too well on objects i actually want outlined. Is rendering in two different viewports so the effects dont overlap too hard to do?

            • xyz replied to this.

              Devkure I'd avoid rendering this in two viewports. The way to go is to adjust the bush asset and/or its shader so that outline shader renders it nicely.

                xyz Thing is i dont necessarily want outline to render on everything... Imho the foliage would look far better with no visual border (outline), the same goes for any kind of grass and whatnot. My question is, if its troublesomesome to render it separately. If not viewports - is there any other way to separate the two, for instance - having the outline only attached to the building or any other kind of object (maybe attached to the material of said object?)

                xyz Update!
                The issue was connected to transparency.

                I fixed it by setting up the render priority on the material to 1.

                Now the only question is, how can i separate other potential objects, like grass, to not be outlined. ![

                • xyz replied to this.

                  Devkure Render them after the post filter is applied and use the depth texture to discard obscured pixels. You'll have to maintain the camera clone for the second render.