Module three_d::object[][src]

Expand description

A collection of objects that can be rendered, for example a mesh.

Structs

Axes

Three arrows indicating the three main axes; the x-axis (red), the y-axis (green) and the z-axis (blue). Used for easily debugging where objects are placed in the 3D world.

Imposters

A level-of-detail technique to replace rendering high-poly meshes at a distance. A mesh is rendered from different angles into a set of textures and the textures are then rendered continuously instead of the high-poly meshes.

InstancedMesh

Similar to Mesh, except it is possible to render many instances of the same triangle mesh efficiently.

InstancedMeshProgram

A shader program used for rendering one or more instances of a InstancedMesh. It has a fixed vertex shader and customizable fragment shader for custom lighting. Use this in combination with render.

Mesh

A triangle mesh which can be rendered with one of the default render functions or with a custom MeshProgram. See also PhongMesh for rendering a mesh with lighting.

MeshProgram

A shader program used for rendering one or more instances of a Mesh. It has a fixed vertex shader and customizable fragment shader for custom lighting. Use this in combination with render.

ParticleData

Used to define the initial position and velocity of a particle in Particles.

Particles

Particle effect with fixed vertex shader and customizable fragment shader (see also ParticlesProgram).

ParticlesProgram

Shader program used for rendering Particles. The fragment shader code can use position (in vec3 pos;) normal (in vec3 nor;) and uv coordinates (in vec2 uvs;).

Skybox

An illusion of a sky.