Expand description
Provides 2D sprite rendering functionality.
Modules§
Structs§
- Color
Material Flags - Color
Material Uniform - The GPU representation of the uniform data of a [
ColorMaterial
]. - Draw
Mesh2d - Extracted
Point Light - GpuLights
- GpuPoint
Light - Light
Meta - Material2d
Bind Group Id - Material2d
Key - Material2d
Pipeline - Render pipeline data for a given
Material2d
- Material2d
Plugin - Adds the necessary ECS resources and render logic to enable rendering entities using the given
Material2d
asset type (which includesMaterial2d
types). - Material
Mesh2d Bundle - A component bundle for entities with a
Mesh2dHandle
and aMaterial2d
. - Mesh2d
- Mesh2d
Bind Group - Mesh2d
Handle - Component for rendering with meshes in the 2d pipeline, usually with a 2d material such as
ColorMaterial
. - Mesh2d
Pipeline - Mesh2d
Pipeline Key - Mesh2d
Transforms - Mesh2d
Uniform - Mesh2d
UvRange - Component for restricting rendering of a material to a subset of the UV coordinates.
- Mesh2d
View Bind Group - Mesh
Flags - NeoMaterial
- A 2d material that renders 2d meshes with a texture tinted by a uniform color
- NeoMaterial
Plugin - NeoMesh2d
Render Plugin - NoWireframe2d
- Disables wireframe rendering for any entity it is attached to.
It will ignore the
Wireframe2dConfig
global setting. - Point
Light2d - Point
Light2d Bundle - Prepared
Material2d - Data prepared for a
Material2d
instance. - Render
Material2d Instances - Render
Mesh2d Instance - Render
Mesh2d Instances - SetMaterial2d
Bind Group - SetMesh2d
Bind Group - SetMesh2d
View Bind Group - Sprite2d
- Sprite
Plugin - Adds support for 2D sprite rendering.
- View
Light Entities - View
Lights Uniform Offset - Wireframe2d
- Enables wireframe rendering for any entity it is attached to.
It will ignore the
Wireframe2dConfig
global setting. - Wireframe2d
Color - Sets the color of the
Wireframe2d
of the entity it is attached to. If this component is present but there’s noWireframe2d
component, it will still affect the color of the wireframe whenWireframe2dConfig::global
is set to true. - Wireframe2d
Config - Wireframe2d
Material - Wireframe2d
Plugin - A
Plugin
that draws wireframes for 2D meshes.
Enums§
- Sprite
System - System set for sprite rendering.
Constants§
- COLOR_
MATERIAL_ SHADER_ HANDLE - MAX_
POINT_ LIGHTS - MESH2D_
BINDINGS_ HANDLE - MESH2D_
FUNCTIONS_ HANDLE - MESH2D_
SHADER_ HANDLE - MESH2D_
TYPES_ HANDLE - MESH2D_
VERTEX_ OUTPUT - MESH2D_
VIEW_ BINDINGS_ HANDLE - MESH2D_
VIEW_ TYPES_ HANDLE - SPRITE_
SHADER_ HANDLE - SPRITE_
VIEW_ BINDINGS_ SHADER_ HANDLE - WIREFRAME_
2D_ SHADER_ HANDLE
Traits§
- Material2d
- Materials are used alongside
Material2dPlugin
andMaterialMesh2dBundle
to spawn entities that are rendered with a specificMaterial2d
type. They serve as an easy to use high level way to renderMesh2dHandle
entities with custom shader logic.
Functions§
- calculate_
bounds_ 2d - System calculating and inserting an
Aabb
component to entities with either: - extract_
lights - extract_
mesh2d - prepare_
lights - prepare_
mesh2d_ bind_ group - prepare_
mesh2d_ view_ bind_ groups - queue_
material2d_ meshes - tonemapping_
pipeline_ key - update_
sprite_ 2d_ uv_ ranges
Type Aliases§
- NeoMesh2d
Bundle - A component bundle for entities with a
Mesh2dHandle
and a [ColorMaterial
]. - With
Mesh2d - A convenient alias for
With<Mesh2dHandle>>
, for use with [bevy_render::view::VisibleEntities
].