From 0d20ac80d8185483fe7b6d4460c1fdc107563f4c Mon Sep 17 00:00:00 2001 From: Sebastian Gaida Date: Sat, 24 Jun 2023 11:36:54 +0200 Subject: [PATCH] bump CI Signed-off-by: Sebastian Gaida --- nanovdb/nanovdb/PNanoVDB.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nanovdb/nanovdb/PNanoVDB.h b/nanovdb/nanovdb/PNanoVDB.h index a215d09e7b..563eb13539 100644 --- a/nanovdb/nanovdb/PNanoVDB.h +++ b/nanovdb/nanovdb/PNanoVDB.h @@ -2555,6 +2555,7 @@ PNANOVDB_FORCE_INLINE pnanovdb_bool_t pnanovdb_hdda_zero_crossing( pnanovdb_vec3_t bbox_maxf = pnanovdb_coord_to_vec3(pnanovdb_coord_add(bbox_max, pnanovdb_coord_uniform(1))); pnanovdb_bool_t hit = pnanovdb_hdda_ray_clip(PNANOVDB_REF(bbox_minf), PNANOVDB_REF(bbox_maxf), origin, PNANOVDB_REF(tmin), direction, PNANOVDB_REF(tmax)); + // Early out if ray does not hit volume if (!hit || tmax > 1.0e20f) { @@ -2615,6 +2616,7 @@ PNANOVDB_FORCE_INLINE pnanovdb_bool_t pnanovdb_hdda_tree_marcher( pnanovdb_vec3_t bbox_maxf = pnanovdb_coord_to_vec3(pnanovdb_coord_add(bbox_max, pnanovdb_coord_uniform(1))); pnanovdb_bool_t hit = pnanovdb_hdda_ray_clip(PNANOVDB_REF(bbox_minf), PNANOVDB_REF(bbox_maxf), origin, PNANOVDB_REF(tmin), direction, PNANOVDB_REF(tmax)); + // Early out if ray does not hit volume if (!hit || tmax > 1.0e20f) {