Skip to content

DISTANCE_FOG shader doesn't compile due to unknown variable #22406

@mockersf

Description

@mockersf

Bevy version and features

What you did

cargo run --example atmospheric_fog

What went wrong

error: no definition in scope for identifier: `in`
    ┌─ embedded://bevy_pbr/render/pbr_functions.wgsl:798:160
    │
798 │                 shadow = bevy_pbr::shadows::fetch_directional_shadow(i, fragment_world_position_vec4, view_direction_normal, view_z, in.frag_coord.xy);
    │                                                                                                                                                                ^^ unknown identifier
    │
    = no definition in scope for identifier: `in`

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorP-RegressionFunctionality that used to work but no longer does. Add a test for this!S-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions