Skip to content

Commit

Permalink
Adding texture alpha to wobbler
Browse files Browse the repository at this point in the history
  • Loading branch information
rumblesan committed May 20, 2021
1 parent 2f1e5fb commit 07b20e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion materials/wobbler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ fragmentShader: |
uniform float Time;
uniform float Freq;
uniform float Depth;
uniform float TextureAlpha;
out vec4 finalColour;
Expand All @@ -33,5 +34,5 @@ fragmentShader: |
}
void main() {
finalColour = texture(Texture, Texcoord + wobble(Texcoord, Freq));
finalColour = texture(Texture, Texcoord + wobble(Texcoord, Freq)) * vec4(1, 1, 1, TextureAlpha);
}

0 comments on commit 07b20e4

Please sign in to comment.