Pixel-Composer/scripts/d3d_ray/d3d_ray.gml

9 lines
210 B
Text
Raw Normal View History

function __ray(origin, direction) constructor {
self.origin = origin;
self.direction = direction.normalize();
static sampleDistance = function(t) {
2023-11-08 08:38:04 +01:00
INLINE
return origin.add(direction.multiply(t));
}
}