Module crystal_ball::prelude[][src]

Structs

Camera

A geometric representation of a camera including aperture and focus distance.

Color

An RGB color represented by 3 float values. (0, 0, 0) is black and (1, 1, 1) is white. This struct supports elementwise arithmetic operations (+, -, *, /).

Diffuse

A material that scatters diffusely according to Lambert’s law.

Emissive

A material that emits light.

IOR

A struct containing common index of refraction values as constants.

Image

An image of fixed size represented as a 2-dimensional Vec of Color.

Metallic

A material that is rough and reflecting.

Refractive

A material that is rough and refracts and reflects light.

RenderEngine

The render engine.

Scene

The scene, consisting of camera, objects and background.

Sphere

A geometrically perfect sphere.

Vec3

A 3D vector. This struct supports elementwise arithmetic operations (+, -, *, /). In addition dot and cross are provided.

Traits

Material

Characterize optical properties of a surface.

Shape