Skip to content

Unlit materials cause shader panic #2190

Closed
@aevyrie

Description

Bevy version

Commit e3435e5

Confirmed the breaking change happened in 73f4a9d

Operating system & version

Windows 10

What you did

Existing plugins that use unlit materials now panic as soon as meshes with that material are shown. Results in the following panic:

thread 'main' panicked at 'Shader compilation error:
glslang_shader_parse:
Info log:
ERROR: 0:293: 'getDistanceAttenuation' : no matching overloaded function found
ERROR: 0:293: '' : compilation terminated
ERROR: 2 compilation errors.  No code generated.

Lines in question appear to be in the pbr frag shader here:

float rangeAttenuation =
getDistanceAttenuation(distance_square, light.lightParams.r);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions