Pixel-Composer/scripts/d3d_ray/d3d_ray.gml
2023-08-22 11:51:45 +02:00

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));
}
}