Path: blob/main/release-content/migration-guides/bevy_render_reorganization.md
6592 views
---
---
You must now import bevy_render::NormalizedRenderTargetExt
to use methods on NormalizedRenderTarget
ManualTextureViews
is now in bevy_render::texture
Camera types such as Camera
, Camera3d
, Camera2d
, ClearColor
, ClearColorConfig
, Projection
, PerspectiveProjection
, and OrthographicProjection
have been moved to a new crate, bevy_camera
. Visibility types such as Visibility
, InheritedVisibility
, ViewVisibility
, VisibleEntities
, and RenderLayers
have been moved to bevy_camera::visibility
. Culling primitives such as Frustum
, HalfSpace
, Aabb
, and Sphere
have been moved to bevy_camera::primitives
. Import them directly or from bevy::camera
now.
Shader types such as Shader
, ShaderRef
, ShaderDef
, ShaderCache
, and PipelineCompilationError
have been moved to a new crate, bevy_shader
. Import them directly or from bevy::shader
now.
Light types such AmbientLight
, PointLight
, SpotLight
, DirectionalLight
, EnvironmentMapLight
, GeneratedEnvironmentMapLight
, LightProbe
, IrradianceVolume
, VolumetricFog
, FogVolume
, and light_consts
have been moved to a new crate, bevy_light
. Import them directly or from bevy::light
now.
Mesh types such as Mesh
, Mesh3d
, Mesh2d
, MorphWeights
, MeshBuilder
, and Meshable
have been moved to a new crate, bevy_mesh
. Import them directly or from bevy::mesh
now.
Image types such as Image
, ImagePlugin
, ImageFormat
, ImageSampler
, ImageAddressMode
, ImageSamplerDescriptor
, ImageCompareFunction
, and ImageSamplerBorderColor
have been moved to a new crate, bevy_image
. Import them directly or from bevy::image
now.
Ui rendering types such as MaterialNode
, UiMaterial
, UiMaterialKey
, and modules bevy_ui::render
and bevy_ui::ui_material
have been moved to a new crate, bevy_ui_render
. Import them directly or from bevy::ui_render
now. Furthermore, UiPlugin
no longer has any fields. To control whether or not UI is rendered, enable or disable UiRenderPlugin
, which is included in the DefaultPlugins.
Sprite rendering types such as Material2d
, Material2dPlugin
, MeshMaterial2d
, AlphaMode2d
, Wireframe2d
, TileData
, TilemapChunk
, and TilemapChunkTileData
have been moved to a new crate, bevy_sprite_render
. Import them directly or from bevy::sprite_render
now.
RenderAssetUsages
is no longer re-exported by bevy_render
. Import it from bevy_asset
or bevy::asset
instead.
bevy_core_pipeline
used to be home to many non-core things, including post process effects. They have now been given a new home in bevy_anti_alias
and bevy_post_process
.
If you were importing FxaaPlugin, SmaaPlugin, TemporalAntiAliasPlugin, or CasPlugin from bevy_core_pipeline
or bevy::core_pipeline
, you must now import them from bevy_anti_alias
or bevy::anti_alias
.
If you were importing Bloom, AutoExposure, ChromaticAberration, DepthOfField, or MotionBlur from bevy_core_pipeline
or bevy::core_pipeline
, you must now import them from bevy_post_process
or bevy::post_process
.