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

9 lines
210 B
Plaintext

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