mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-26 23:17:25 +01:00
9 lines
No EOL
230 B
Text
9 lines
No EOL
230 B
Text
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));
|
|
}
|
|
} |