Fill up texture below highest black Pixel


I want to fill every pixel on a 2D texture with black if the pixel above is black. Like the red areas in the picture. Is there any texture filter for this problem?


What you’re looking for might be described here, 2d ray cast.

Which was ported here already:

did you tried the drop shadow texture fx already?
i think it does exactly what you described. (9.5 KB)

Great, the LongShadow is exactly what I was looking for.
Thanks DiMiX

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.