Forum

Long shadow in Pixel shader


#1

Hey guys,
i´m working on a project, and i´m looking for a way to draw long shadows,
i´ve tried with the unc´s dropshadow shader but i would like to have something like this example:
http://www.bx86.biz/2014/05/12/flat-long-shadow-infographics-infographics/

Any tip to modify the dropshadow one?

Thanks in advance


#2

here you go :)
gotta port that one to dx11 too

DropShadowAdvanced.zip (5.5 kB)


#3

unc, this is simply perfect,

thanks a lot.

Ari


#4

Hi unc,
thanks for contribution.
I’d like to use it with Edge like that

is it possible to get edge around the shadow?

DropShadowAdvancedEdge.zip (7.0 kB)


#5

try this (but seems like too much setup for a small effect)

DropShadowAdvancedEdge_01.zip (8.6 kB)


#6

Thanks unc,
“too much setup” is a way better then running contour for that!