Pixel-Composer/scripts/d3d_ray/d3d_ray.gml
2023-11-08 14:38:04 +07:00

9 lines
No EOL
210 B
Text

function __ray(origin, direction) constructor {
self.origin = origin;
self.direction = direction.normalize();
static sampleDistance = function(t) {
INLINE
return origin.add(direction.multiply(t));
}
}