Radagasd / line-intersections

An HLSL include file for finding the intersection between a line and the following shapes: plane, cylinder, ellipsoid, hyperboloid, paraboloid, ellipse, capped cylinder, capped ellipsoid, capped half hyperboloid, rectangle and a box. Also includes a visualiser shader for URP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

line-intersections

An HLSL include file for finding the intersection between a line and the following shapes: plane, cylinder, ellipsoid, hyperboloid, paraboloid, ellipse, capped cylinder, capped ellipsoid, capped half hyperboloid, rectangle and a box. Also includes a visualiser shader for URP in the samples.

While not tested, the HLSL include file should work with the other render pipelines as it does not rely on URP specific functionality (except for the visualiser).

This package is made for my tutorial on line intersections that can be found here.

About

An HLSL include file for finding the intersection between a line and the following shapes: plane, cylinder, ellipsoid, hyperboloid, paraboloid, ellipse, capped cylinder, capped ellipsoid, capped half hyperboloid, rectangle and a box. Also includes a visualiser shader for URP.

License:MIT License


Languages

Language:HLSL 62.0%Language:GLSL 38.0%