Cauldron3D.Billboard (Cauldron3D v0.2.2)

Copy Markdown View Source

A flat picture standing in the world, turned to face the camera.

Cauldron3D.Billboard.polygon(view, {128.0, 0.0, 32.0}, texture, origin: {16, 32})

The picture's pixel origin (default its centre) sits at position; one pixel is one world unit times :scale. :upright (default false) keeps it standing straight up and only turned about z, as a tree or a torch flame is.

Summary

Functions

The picture as a polygon facing view. Options: :origin, :scale, :upright, :light (as {:texture, texture, light} takes, default nil), :clear (default 255) and :depth.

Functions

polygon(view, position, texture, opts \\ [])

The picture as a polygon facing view. Options: :origin, :scale, :upright, :light (as {:texture, texture, light} takes, default nil), :clear (default 255) and :depth.