Module three_d::renderer[][src]

Expand description

High-level features for easy rendering of different types of objects with different types of shading. Can be combined seamlessly with the mid-level features in the core module and also with calls in the context module as long as the graphics state is reset.

Re-exports

pub use crate::core::material::*;
pub use crate::core::math::*;
pub use crate::core::render_target::*;
pub use crate::core::texture::*;
pub use shading::*;
pub use effect::*;
pub use light::*;
pub use object::*;

Modules

Effects applied to each pixel, for example fog or anti-aliasing.

A collection of light types. Currently implemented light types are ambient light, directional light, spot light and point light. Directional and spot lights can cast shadows.

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

Adds functionality for rendering objects with lighting including support for physically based rendering (PBR). To render an object implementing the ShadedGeometry trait, either call the ShadedGeometry::render_with_lighting method or use the ForwardPipeline or DeferredPipeline.

Structs

A bounding box that aligns with the x, y and z axes.

Used in a render call to define how to view the 3D world.

Represents a color composed of a red, green and blue component. In addition, the alpha value determines the how transparent the color is (0 is fully transparent and 255 is fully opaque).

Contains the graphics API for almost direct calls to OpenGL/WebGL. Used internally in the higher level features and can safely be ignored unless you want more control.

Defines the part of the screen/render target that is rendered to.

Enums

Error in the renderer module.

Functions