Skip to content

Enabling transparency is cumbersome  #64

@cart

Description

@cart

Currently when using common materials like ColorMaterial and StandardMaterial, users need to remember to enable draw.is_transparent. This will be a common "foot gun" and it should really happen automatically if the color has an alpha component.

// currently this is required
world.spawn(NodeComponents {
    material: materials.add(Color::rgba(1.0, 0.9, 0.9, 0.4).into()),
    draw: Draw {
        is_transparent: true,
        ..Default::default()
    },
    ..Default::default()
})

// ideally the `0.4` alpha value results in alpha transparency
world.spawn(NodeComponents {
    material: materials.add(Color::rgba(1.0, 0.9, 0.9, 0.4).into()),
    ..Default::default()
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-FeatureA new feature, making something new possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions