Module generate

Module generate 

Source
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§

DownsamplingConfig
Configuration for downsampling strategy based on device limits
DownsamplingConstants
Shader constants for downsampling algorithm
DownsamplingNode
Downsampling node implementation that handles all parts of the mip chain
EnvironmentMapGenerationPlugin
FilteringConstants
Constants for filtering
FilteringNode
Radiance map node for generating specular environment maps
GeneratorBindGroupLayouts
Stores the bind group layouts for the environment map generation pipelines
GeneratorBindGroups
Stores bind groups for the environment map generation pipelines
GeneratorPipelines
Pipelines for the environment map generation pipelines
GeneratorSamplers
Samplers for the environment map generation pipelines
IntermediateTextures
RenderEnvironmentMap

Enums§

GeneratorNode
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 the GeneratedEnvironmentMapLight 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