soft shadows generator

Another interactive CodePen! This time it's the code we used to generate Upthere assets.

You can move the light by dragging, and press + / - to change its height.

You can also edit the vector map on line 6 and change or add points to draw as many segments as you want. Be careful, it's raycasting on the CPU, it gets slow real fast :D

View all tags
Posted on Feb 24, 2021
Laurent Baumann
Welcome to my design portfolio on Dribbble

More by Laurent Baumann

View profile