#Outline shader rendering in front of geometry that "extrudes" out of the main mesh

1 messages · Page 1 of 1 (latest)

hasty mountain
safe ice
#

If you change the render face to back instead of front it should help.

#

also if the outline renders before the main mesh the z test wont do as you want (especially if its writing to depth too)

hasty mountain
#

Cull front does make the render face the back face, no? Since it doesn't render the front face

safe ice
#

Normally we render front faces, the inverse hull outline should then render back

alpine parrot
#

It's normal for outlines to appear over parts of the model with inverted hull. Those outlines are likely still infront of the other part of the model, hence ZTest Less passes (that only prevents geometry behind rendering ontop)

You can use stencils to prevent it. i.e. render regular model with "Ref 1, Comp Always, Pass Replace". Then render outline with "Ref 1, Comp NotEqual"

hasty mountain
alpine parrot
#
safe ice
#

Ive done this fine without stencil use

#

I think the given example of a balloon should work fine without it but more complex models may need help.
If not targeting mobile platforms id go with a post effect outline instead

hasty mountain
#

ooh those look very nice

#

yeah I think I'll do those