soft shadows generator

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

https://codepen.io/lobau/pen/c2163cc924571a349be9cad024008cf1

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