Next step was to “place our texture into the box”. The idea here is to shoot a ray from the camera towards the box. If the ray intersects the box, we will sample our texture at multiple points along the ray inside the box and then draw that point on the quad surface.
If the ray does not intersect the box, we do not draw our texture on the quad.
This enables us to have full control over where to place our clouds in the scene as we reshape and move around the bounding box.