Skip to content

Commit

Permalink
fix: uniforms: be even a tiny bit more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Luracasmus authored Aug 23, 2024
1 parent ab69000 commit 53ebe55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Aside } from '@astrojs/starlight/components';

### `uniform mat4 textureMatrix;`

Transforms texture coordinates. Mainly used in [`gbuffers_armor_glint`](/reference/programs/gbuffers) to scroll the texture over time, but may be applied to other geometry as well (especially by mods). It is therefore strongly recommended to use this matrix in all [gbuffers-style](/reference/programs/overview/#program-order) programs.
Transforms texture coordinates. Mainly used in [`gbuffers_armor_glint`](/reference/programs/gbuffers) to scroll the texture over time, but may be applied to other geometry as well (especially by mods). It is therefore strongly recommended to use this matrix in all [gbuffers-style](/reference/programs/overview/#program-order) programs utilizing [`vaUV0`](/reference/attributes/vauv0/).
```glsl
vec2 coord = (textureMatrix * vec4(vaUV0, 0.0, 1.0)).xy;
```
Expand Down

0 comments on commit 53ebe55

Please sign in to comment.