Skip to content

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

@nickcosmo

Description

@nickcosmo

Most appropriate sections of the p5.js website?

Tutorials

What is your operating system?

Mac OS

Web browser and version

Chrome 148.0.7778.179

Actual Behavior

The example code within the "Varyings: Passing data from vertex to fragment shader" section has a bug in the code. The vTexCoord 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

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