# 3d Vectors + Lightsource

**URL:** <https://forum.kirupa.com/t/3d-vectors-lightsource/142720>\
**Category:** Uncategorized\
**Created:** [March 31, 2005, 1:07am UTC](https://forum.kirupa.com/t/3d-vectors-lightsource/142720 "2005-03-31T01:07:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musashi9](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@musashi9](https://forum.kirupa.com/u/musashi9)\
**Post date:** [March 31, 2005, 1:07am UTC](https://forum.kirupa.com/t/3d-vectors-lightsource/142720/1 "2005-03-31T01:07:32Z")

</div>

Hi  
i have been thru the 3d section for action script based at this site  
and i have made a 3d spinning cube  
[http://www.mn001c7645.pwp.blueyonder.co.uk/cube.html](http://www.mn001c7645.pwp.blueyonder.co.uk/cube.html)  
can someone tell me how to add light sourcing to it  
by that i mean, make each side of the cube go brighter or darker depending on the depth  
like in this example  
[http://lab.andre-michelle.com//3d/3dobj.swf](http://lab.andre-michelle.com//3d/3dobj.swf)
