This commit is contained in:
yggdrasil75
2026-03-09 05:38:27 -04:00
parent 3d96e569c8
commit 3ff50cb43d
4 changed files with 1291 additions and 1 deletions

View File

@@ -598,7 +598,7 @@ private:
float t;
PointType normal, hitPoint;
if (rayCubeIntersect(ray, pointData.get(), t, normal, hitPoint)) {
if (rayCubeIntersect(ray, pointData.get(), t, normal, hitPoint) && pointData->visible) {
if (t >= 0 && t <= maxDist && t <= tMax + 0.001f) {
maxDist = t;
hit = pointData;

1023
util/sim/plant.hpp Normal file

File diff suppressed because it is too large Load Diff