Skip to content

Commit c17fcfa

Browse files
committed
typo
1 parent 634f326 commit c17fcfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

threejs/lessons/threejs-post-processing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ const colorShader = {
260260
vec4 previousPassColor = texture2D(tDiffuse, vUv);
261261
gl_FragColor = vec4(
262262
previousPassColor.rgb * color,
263-
previousPassColor.w);
263+
previousPassColor.a);
264264
}
265265
`,
266266
};
@@ -275,7 +275,7 @@ is pretty much standard and rarely needs to be changed. Without going into too
275275
many details (see articles linked above) the variables `uv`, `projectionMatrix`,
276276
`modelViewMatrix` and `position` are all magically added by THREE.js.
277277
278-
Finally we create a fragment shader. In it we get get pixel color from the
278+
Finally we create a fragment shader. In it we get a pixel color from the
279279
previous pass with this line
280280
281281
```glsl

0 commit comments

Comments
 (0)