Expand description
Physically based rendering.
Modules
Structs
- An ambient light, which lights the entire scene equally.
- Controls how cascaded shadow mapping works. Prefer using
CascadeShadowConfigBuilder
to construct an instance. - Builder for
CascadeShadowConfig
. - Configure the depth-slicing strategy for clustered forward rendering
- A Directional light.
- A component bundle for
DirectionalLight
entities. - Controls the resolution of
DirectionalLight
shadow maps. - Environment map based ambient lighting representing light from distant scenery.
- Metadata for fog
- A plugin that consolidates fog extraction, preparation and related resources/assets
- 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
. - The GPU-side representation of the fog configuration that’s sent as a uniform to the shader
- Render pipeline data for a given
Material
. - A key uniquely identifying a specialized
MaterialPipeline
. - Adds the necessary ECS resources and render logic to enable rendering entities using the given
Material
asset type. - Common
Material
properties, calculated for a specific material instance. - Bind groups for meshes currently loaded.
- All possible
BindGroupLayout
s in bevy’s default mesh shader (mesh.wgsl
). - MSAA uses the highest 3 bits for the MSAA log2(sample count) to support up to 128x MSAA.
- Add this component to make a
Mesh
not cast shadows. - Add this component to make a
Mesh
not receive shadows. - Sets up the entire PBR infrastructure of bevy.
- A light that emits light in all directions from a central point.
- A component bundle for
PointLight
entities. - All
Material
values of a given type that should be prepared next frame. - Data prepared for a
Material
instance. - Sets up everything required to use the prepass pipeline.
- Sets up the prepasses for a
Material
. - Stores all prepared representations of
Material
assets for as long as they exist. - Bundle to apply screen space ambient occlusion.
- Plugin for screen space ambient occlusion.
- Component to apply screen space ambient occlusion to a 3d camera.
- Sets the bind group for a given
Material
at the configuredI
index. - A light that emits light in a given direction from a central point. Behaves like a point light in a perfectly absorbent housing that shines light only in a given direction. The direction is taken from the transform, and can be specified with
Transform::looking_at
. - A component bundle for spot light entities
- A material with “standard” properties used in PBR lighting Standard property values with pictures here https://google.github.io/filament/Material%20Properties.pdf.
- Bitflags info about the material a shader is currently rendering. This is accessible in the shader in the
StandardMaterialUniform
- The pipeline key for
StandardMaterial
. - The GPU representation of the uniform data of a
StandardMaterial
. - Inserted on each
Entity
with anExtractedView
to keep track of its offset in thegpu_fogs
DynamicUniformBuffer
withinFogMeta
Enums
- Sets how a material’s base color alpha channel is used for transparency.
- Configuration of the clustering strategy for clustered forward rendering
- Configure the far z-plane mode used for the furthest depth slice for clustered forward rendering
- Allows switching between different fog falloff modes, and configuring their parameters.
- The parallax mapping method to use to compute depth based on the material’s
depth_map
.
Constants
- Handle for the fog WGSL Shader internal asset
- Maximum number of joints supported for skinned meshes.
Traits
- Materials are used alongside
MaterialPlugin
andMaterialMeshBundle
to spawn entities that are rendered with a specificMaterial
type. They serve as an easy to use high level way to renderMesh
entities with custom shader logic.
Functions
- This system extracts all created or modified assets of the corresponding
Material
type into the “render world”. - Prepares fog metadata and writes the fog-related uniform buffers to the GPU
- This system prepares all assets of the corresponding
Material
type which where extracted this frame for the GPU.
Type Definitions
- A component bundle for PBR entities with a
Mesh
and aStandardMaterial
.