Skip to content

Variable defined but never used #2

@darloth

Description

@darloth

Line 34 of Shaders/fog_frag.glsl:
/const/ float sunSpecularColor = suncolor; //FIXME

Defines a variable by implicitly casting a vec3 to a float (what does this even do? Use the first value? I have no idea) which apparently causes a warning to be logged.

The variable is then never used - according to github, not anywhere, and certainly nowhere in that shader.

I recommend removing this line and seeing if anything breaks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions