Files
Toy/scripts/shadow.toy

9 lines
188 B
Plaintext

//something was odd, so I broke this down for testing
import math;
fn shadowCastPoint(x: float, y: float, depth: int) {
return sin(tan(x/y)) * depth;
}
print shadowCastPoint(1, 1, 10);