[2020]. I remember laughing out loud when I saw this then, and I did so once again seeing it tonight.
This is the sort of "Nobody should do this, but why not try it?" sort of programming project that I love to see. Using a language in completely inappropriate ways is a great way to learn more about computing, and especially about how there's more than one way to represent a problem.
Would we trace() again to the light source and determine if we get another hit? Then we're in shadow. Even more hard-core is to add jitter to those rays to determine edges for penumbra.
3 comments
[ 2.8 ms ] story [ 86.2 ms ] threadThis is the sort of "Nobody should do this, but why not try it?" sort of programming project that I love to see. Using a language in completely inappropriate ways is a great way to learn more about computing, and especially about how there's more than one way to represent a problem.
>> # Use equation of a circle to fake shadow
Would we trace() again to the light source and determine if we get another hit? Then we're in shadow. Even more hard-core is to add jitter to those rays to determine edges for penumbra.