mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Added int to float coercions to function args and returns, when specified
This commit is contained in:
8
scripts/shadow.toy
Normal file
8
scripts/shadow.toy
Normal file
@@ -0,0 +1,8 @@
|
||||
//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);
|
||||
Reference in New Issue
Block a user