mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-11 04:54:06 +01:00
9 lines
230 B
Plaintext
9 lines
230 B
Plaintext
|
function __ray(origin, direction) constructor {
|
||
|
self.origin = origin;
|
||
|
self.direction = direction.normalize();
|
||
|
|
||
|
static sampleDistance = function(t) {
|
||
|
gml_pragma("forceinline");
|
||
|
return origin.add(direction.multiply(t));
|
||
|
}
|
||
|
}
|