Skip to content

Bug when spawning water planes manually with TAA enabled #33

@66OJ66

Description

@66OJ66

Hi, I've encountered a rather obscure bug when experimenting with spawning WaterTiles manually in my game.

In short, if a WaterTile is spawned after startup and the camera has TAA added (TemporalAntiAliasBundle), the water shader doesn't work correctly.

I've uploaded an example repo here which has 3 modes:

enum Mode {
    /// Use bevy_water's default plugin so water spawns automatically. TAA enabled.
    WaterPlugin,
    /// Press 'E' to spawn water manually. TAA disabled.
    ManualSpawnNoTAA,
    /// Press 'E' to spawn water manually. TAA enabled.
    ManualSpawnTAA,
}

These look as follows:

Mode::WaterPlugin

WaterPlugin

Mode::ManualSpawnNoTAA

ManualSpawnNoTAA

Mode::ManualSpawnTAA

ManualSpawnTAA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions