komadori / bevy_mod_outline

Apache License 2.0
119 stars 10 forks source link

Naga error on simple cube #40

Closed rewin123 closed 1 month ago

rewin123 commented 1 month ago

image

error: failed to build a valid final module: Type [1] 'VertexOutput' is invalid
  ┌─ C:\Users\rewin\.cargo\git\checkouts\bevy_mod_outline-2e7dc4b49e7473ae\391bf20\src\fragment.wgsl:1:1
  │
1 │ struct VertexOutput {
  │ ^^^^^^^^^^^^^^^^^^^^^ naga::Type [1]
  │
  = Structure types must have at least one member

Main branch (commit)

komadori commented 1 month ago

This bug causes the stencil fragment shader to be invalid when the outline mode has been set to OutlineMode::RealVertex. As a workaround and in any case, you may wish to consider if this is the right setting for you.

Fixed by 664be88b17407383d18b972498ce69094518fd48. I will make a minor release shortly.

rewin123 commented 1 month ago

image Working. Thanks! 😄

komadori commented 1 month ago

Fix released in 0.8.1.