Skip to content

Commit b2cab24

Browse files
Fix wrong shader type in WebGL texture tutorial (#37625)
1 parent 6ca9542 commit b2cab24

File tree

1 file changed

+1
-1
lines changed
  • files/en-us/web/api/webgl_api/tutorial/using_textures_in_webgl

1 file changed

+1
-1
lines changed

files/en-us/web/api/webgl_api/tutorial/using_textures_in_webgl/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const vsSource = `
221221
`;
222222
```
223223

224-
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.
224+
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.
225225

226226
### The fragment shader
227227

0 commit comments

Comments
 (0)