cf_draw3d_billboard¶
Category: draw3d
GitHub: cute_draw3d.h
Submits a sprite as a camera-facing quad at a 3d position -- a billboard.
| Parameters | Description |
|---|---|
sprite |
The sprite whose current frame supplies the image. |
position |
The world position of the quad's center. |
Remarks¶
Like cf_draw3d_sprite, but the quad is aimed with the current view's camera axes so it always faces the screen -- particles, pickups, impostors. The facing is full (spherical); for cylindrical billboards that pivot around y without tilting back (trees), build the basis yourself -- see the billboards sample, it is a handful of lines.
Related Pages¶
cf_draw3d_sprite
cf_draw3d_mesh
cf_draw3d_push_texture
CF_Sprite
cf_draw3d_push_view