Skip to content

Nodes: Line2NodeMaterial dash mode broken #28884

@aardgoose

Description

@aardgoose

Description

The PR #28585 appears to have broken Line2NodeMaterial. Reverting the PR fixes the error.

In dashed mode, the fragment shader fails to compile with the error in

const lineDistance = positionGeometry.y.lessThan( 0.5 ).cond( dashScaleNode.mul( instanceDistanceStart ), materialLineScale.mul( instanceDistanceEnd ) );

If the multiplications within the cond() expression are removed, the shader compiles as expected.

Reproduction steps

  1. run the example webgpu_lines_fat
  2. select 'dashed' to enable dashed line mode.

Code

n/a

Live example

Line2NodeMaterials example

Screenshots

No response

Version

166

Device

No response

Browser

No response

OS

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions