Change shadow of an SVG element dynamically depending on the set perspective point.
Download changeShadowOfSVGElement.js and link it to your webpage.
changeShadowOfSVGElement(int x1, int y1, int z1, int z2, string element1Identifier, string element2Identifier);
x1, y1, z1 - coordinates of the light source.
z2 - plane of the screen.
element1Identifier - ID of the first SVG element(object).
element2Identifier - ID of the second SVG element(shadow).