(Demo from Jan 2)
A #NewYear2021 resolution: one demo per day. Here’s an #HTML <img>
tag in #3D space with shine from a light, featuring my #ShelbyGT350.
This demo defines a new <shaded-image>
HTML element that makes it possible to size the element (notably the underlying WebGL object) based on the natural size of the <img>
. This way we don’t need to explicitly know the image size.
topics: #webgl #css #javascript #webdev #graphics #365DaysOfCode