From 07b20e46a6e6235dbe0327a13f0d02079cabf760 Mon Sep 17 00:00:00 2001 From: Guy John Date: Thu, 20 May 2021 12:35:39 +0100 Subject: [PATCH] Adding texture alpha to wobbler --- materials/wobbler.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/materials/wobbler.yaml b/materials/wobbler.yaml index 6916990..e4c32b2 100644 --- a/materials/wobbler.yaml +++ b/materials/wobbler.yaml @@ -23,6 +23,7 @@ fragmentShader: | uniform float Time; uniform float Freq; uniform float Depth; + uniform float TextureAlpha; out vec4 finalColour; @@ -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); }