Skip to content

Commit

Permalink
Fix wrong shader type in WebGL texture tutorial (#37625)
Browse files Browse the repository at this point in the history
  • Loading branch information
abstractskies authored Jan 13, 2025
1 parent 6ca9542 commit b2cab24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const vsSource = `
`;
```

The key change here is that instead of fetching the vertex color, we're fetching the texture coordinates and passing them to the vertex shader; this will indicate the location within the texture corresponding to the vertex.
The key change here is that instead of fetching the vertex color, we're fetching the texture coordinates and passing them to the fragment shader; this will indicate the location within the texture corresponding to the vertex.

### The fragment shader

Expand Down

0 comments on commit b2cab24

Please sign in to comment.