t = -dot(plane, vec4(ray.origin, 1.0))/dot(plane.xyz, ray.dir);. return t > 0.0;. } bool RayRectIntersect(Ray ray, Rect rect, out float t).
確定! 回上一頁