(&self)
| 180 | (self.bbox_min + self.bbox_max) * 0.5 |
| 181 | } |
| 182 | fn bbox_radius(&self) -> f32 { |
| 183 | (self.bbox_max - self.bbox_min).length() * 0.5 |
| 184 | } |
| 185 | |
| 186 | /// Sample a texture with clamp-to-edge wrapping and bilinear |
| 187 | /// filtering. Converts sRGB-encoded base-color data back to linear |