Skip to content

3d_gizmos example perspective change shader breaks #13749

Description

@ChristopherBiscardi

Bevy version

0.14.0-rc.2 (commit 3bfc427)

[Optional] Relevant system information

AdapterInfo { name: "Apple M1 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }

What you did

cargo run --example 3d_gizmos

hit "p" to change line perspective

What went wrong

2024-06-08T15:46:23.279131Z ERROR bevy_render::render_resource::pipeline_cache: failed to process shader:
error: invalid field accessor `inverse_clip_from_world`
   ┌─ crates/bevy_gizmos/src/lines.wgsl:77:27
   │
77 │     let position_a = view.inverse_clip_from_world * clip_a;
   │                           ^^^^^^^^^^^^^^^^^^^^^^^ invalid accessor
   │
   = invalid field accessor `inverse_clip_from_world`


2024-06-08T15:46:23.279235Z ERROR bevy_render::render_resource::pipeline_cache: failed to process shader:
error: invalid field accessor `inverse_clip_from_world`
   ┌─ crates/bevy_gizmos/src/lines.wgsl:77:27
   │
77 │     let position_a = view.inverse_clip_from_world * clip_a;
   │                           ^^^^^^^^^^^^^^^^^^^^^^^ invalid accessor
   │
   = invalid field accessor `inverse_clip_from_world`

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-GizmosVisual editor and debug gizmosC-BugAn unexpected or incorrect behaviorC-ExamplesAn addition or correction to our examplesD-ShadersThis code uses GPU shader languagesD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions