raymarch.wgsl
Import path
Bindings
Structures
Functions
fn
hybrid_root_finder_find_root
(
root_finder:
ptr<function,HybridRootFinder>
,
start:
vec3<f32>
,
end:
vec3<f32>
,
distance_fn:
ptr<function,DepthRaymarchDistanceFn>
,
hit_t:
ptr<function,f32>
,
miss_t:
ptr<function,f32>
,
)
->
bool
fn
depth_raymarch_distance_fn_evaluate
(
distance_fn:
ptr<function,DepthRaymarchDistanceFn>
,
ray_point_cs:
vec3<f32>
)
->
DistanceWithPenetration
fn
depth_ray_march_to_cs_dir_impl
(
raymarch:
ptr<function,DepthRayMarch>
,
dir_cs:
vec4<f32>
,
infinite:
bool
)
Must be called after from_cs, as it will clip the world-space ray to the view frustum.
Must be called after from_cs, as it will clip the world-space ray to the view frustum.
Must be called after from_cs, as it will clip the world-space ray to the view frustum.
Must be called after from_cs, as it will clip the world-space ray to the view frustum.
Perform the ray march.
March from a clip-space position (w = 1)