Skip to content

Bug in example code for "Varyings: Passing data from vertex to fragment shader" #1437

Description

@nickcosmo

Most appropriate sections of the p5.js website?

Tutorials

What is your operating system?

Mac OS

Web browser and version

No response

Actual Behavior

Follow up to #1406. It was mentioned that this would also apply to the 2.0 branch. This bug ticket is to track the fix for the 2.0 branch.

The example code within the "Varyings: Passing data from vertex to fragment shader" section has a bug in the code. The vTexCoord varying is the intended variable to pass to the fragment shader but the other vVertexColor variable is passed.

Expected Behavior

The vTexCoord variable should be passed to the fragment shader. The other vVertexColor variable seems irrelevant for the tutorial.

Steps to reproduce

No response

Would you like to work on the issue?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type
    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