Skip to content

Allow creating Image from Color for use in EnvironmentMapLight #20443

Description

@tychedelia

#18207 deprecated AmbientLight in favor of EnvironmentMapLight but uses an awkward constructor that accepts a reference to the Image assets collection in addition to a color.

We should instead have something like Image::from_color or Image::cubemap_from_color that would accept a Color or a ColorCurve in order to produce the env map image. That way, the EnvironmentMapLight could just have a simple from_image constructor that feels more idiomatic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-UsabilityA targeted quality-of-life change that makes Bevy easier to useD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesS-Needs-DesignThis issue requires design work to think about how it would best be accomplishedX-UncontroversialThis work is generally agreed upon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions