Pixel-Composer/scripts/d3d_ray/d3d_ray.gml

9 lines
230 B
Plaintext
Raw Normal View History

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