Module prelude

Module prelude 

Source
Expand description

The PBR prelude.

This includes the most common types in this crate, re-exported for your convenience.

Structs§

DistanceFog
Configures the “classic” computer graphics distance fog effect, in which objects appear progressively more covered in atmospheric haze the further away they are from the camera. Affects meshes rendered via the PBR StandardMaterial.
MaterialPlugin
Adds the necessary ECS resources and render logic to enable rendering entities using the given Material asset type.
MeshMaterial3d
A material used for rendering a Mesh3d.
ScreenSpaceAmbientOcclusionPlugin
Plugin for screen space ambient occlusion.
StandardMaterial
A material with “standard” properties used in PBR lighting. Standard property values with pictures here: https://google.github.io/filament/notes/material_properties.html.

Enums§

FogFalloff
Allows switching between different fog falloff modes, and configuring their parameters.
ParallaxMappingMethod
The parallax mapping method to use to compute depth based on the material’s depth_map.

Traits§

Material
Materials are used alongside MaterialPlugin, Mesh3d, and MeshMaterial3d to spawn entities that are rendered with a specific Material type. They serve as an easy to use high level way to render Mesh3d entities with custom shader logic.