Expand description
Like EnvironmentMapLight
, but filtered in realtime from a cubemap.
An environment map needs to be processed to be able to support uses beyond a simple skybox, such as reflections, and ambient light contribution. This process is called filtering, and can either be done ahead of time (prefiltering), or in realtime, although at a reduced quality. Prefiltering is preferred, but not always possible: sometimes you only gain access to an environment map at runtime, for whatever reason. Typically this is from realtime reflection probes, but can also be from other sources.
In any case, Bevy supports both modes of filtering.
This module provides realtime filtering via bevy_light::GeneratedEnvironmentMapLight
.
For prefiltered environment maps, see bevy_light::EnvironmentMapLight
.
These components are intended to be added to a camera.
Structs§
- Downsampling
Config - Configuration for downsampling strategy based on device limits
- Downsampling
Constants - Shader constants for downsampling algorithm
- Downsampling
Node - Downsampling node implementation that handles all parts of the mip chain
- Environment
MapGeneration Plugin - Filtering
Constants - Constants for filtering
- Filtering
Node - Radiance map node for generating specular environment maps
- Generator
Bind Group Layouts - Stores the bind group layouts for the environment map generation pipelines
- Generator
Bind Groups - Stores bind groups for the environment map generation pipelines
- Generator
Pipelines - Pipelines for the environment map generation pipelines
- Generator
Samplers - Samplers for the environment map generation pipelines
- Intermediate
Textures - Render
Environment Map
Enums§
- Generator
Node - Labels for the environment map generation nodes
Functions§
- extract_
generated_ environment_ map_ entities - generate_
environment_ map_ light - System that generates an
EnvironmentMapLight
component based on theGeneratedEnvironmentMapLight
component - initialize_
generated_ environment_ map_ resources - Initializes all render-world resources used by the environment-map generator once on
bevy_render::RenderStartup
. - prepare_
generated_ environment_ map_ bind_ groups - Prepares bind groups for environment map generation pipelines
- prepare_
generated_ environment_ map_ intermediate_ textures - Prepares textures needed for single pass downsampling