Skip to content

add DirectionalLightBundle similar to PointLightBundle #2184

Closed
@jakobhellermann

Description

@jakobhellermann

What problem does this solve or what need does it fill?

The PR #2112 added the DirectionalLight component, but in order to use it you need to spawn an entity with a Transform, GlobalTransform and DirectionalLight. This is cumbersome and can difficult to understand for an unexperienced bevy user.

What solution would you like?

A DirectionalLightBundle should be added similar to the PointLightBundle:

/// A component bundle for "light" entities
#[derive(Debug, Bundle, Default)]
pub struct PointLightBundle {
pub point_light: PointLight,
pub transform: Transform,
pub global_transform: GlobalTransform,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-FeatureA new feature, making something new possibleD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions