Skip to content

Update tutorial snippet to pass proper varying from vertex shader to#1439

Merged
davepagurek merged 2 commits into
processing:2.0from
nickcosmo:fix/2.0_tutorial_passing-data-from-vertex-to-fragment-shader
Jun 11, 2026
Merged

Update tutorial snippet to pass proper varying from vertex shader to#1439
davepagurek merged 2 commits into
processing:2.0from
nickcosmo:fix/2.0_tutorial_passing-data-from-vertex-to-fragment-shader

Conversation

@nickcosmo

@nickcosmo nickcosmo commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Resolves #1437

Description

This is a follow-up PR to this PR #1122 (review) where it was mentioned that the same fix should be applied to the 2.0 branch.

Changes

  • Remove references to the vVertexColor varying in the tutorial snippet for "Varyings: Passing data from vertex to fragment shader" and instead pass vTexCoord varying to the fragment shader.
  • Some white space changes to fix how the indentation and padding is displayed on the code blocks.

@nickcosmo

nickcosmo commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

@doradocodes @Nwakaego-Ego @davepagurek Follow-up PR to our previous discussion here -> #1122.

I also noticed that the code looks the same in the src/content/tutorials/ko/intro-to-glsl.mdx file. I can't read that one (guessing Korean?) but I can also update the code snippet there if it makes sense to do so. Just lmk!

@davepagurek davepagurek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks again!

@davepagurek davepagurek merged commit 422113c into processing:2.0 Jun 11, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants