Builtin Library
- ..
- README.md810 B
- bindings.yaml1.9 KB
- shader.wgsl3.2 KB
README.md
fx_ray_shapes
The fixed twin of ray_shapes: one program of the fixed device program set (proc.fx) that casts the rays of every
variant (words, segments, live) against the shape table and answers the same words: hit, hit_prim,
hit_normal and hit_end.
A device stage binds at most eight storage buffers, so the program holds one run for each of the three ray inputs
(ray_from, ray_to, ray_extra) where the variants hold five: fx.module/ray_shapes.luau states which binding of a
variant each one takes. Its params are skin (a float: how far the corrected end stands off the surface) and source
(an integer: 0 the rays are 8 words of ray_from, 1 the segments of ray_from and ray_to cast by the f32 words of
ray_extra, 2 the segments of the first ray_extra[0] elements).