Module prelude

Source
Expand description

The PBR prelude.

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

Structs§

AmbientLight
An ambient light, which lights the entire scene equally.
DirectionalLight
A Directional light.
DirectionalLightBundleDeprecated
A component bundle for DirectionalLight entities.
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.
EnvironmentMapLight
A pair of cubemap textures that represent the surroundings of a specific area in space.
LightProbe
A marker component for a light probe, which is a cuboid region that provides global illumination to all fragments inside it.
MaterialMeshBundleDeprecated
A component bundle for entities with a Mesh3d and a MeshMaterial3d.
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.
PointLight
A light that emits light in all directions from a central point.
PointLightBundleDeprecated
A component bundle for PointLight entities.
ReflectionProbeBundleDeprecated
A bundle that contains everything needed to make an entity a reflection probe.
ScreenSpaceAmbientOcclusionPlugin
Plugin for screen space ambient occlusion.
SpotLight
A light that emits light in a given direction from a central point.
SpotLightBundleDeprecated
A component bundle for spot light entities
StandardMaterial
A material with “standard” properties used in PBR lighting Standard property values with pictures here https://google.github.io/filament/Material%20Properties.pdf.

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.

Type Aliases§

PbrBundleDeprecated
A component bundle for PBR entities with a Mesh3d and a MeshMaterial3d<StandardMaterial>.