diff options
Diffstat (limited to 'Shaders/world.frag')
-rw-r--r-- | Shaders/world.frag | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Shaders/world.frag b/Shaders/world.frag index 18945a8..79d87aa 100644 --- a/Shaders/world.frag +++ b/Shaders/world.frag @@ -9,6 +9,7 @@ precision mediump float; uniform sampler2D textu; uniform sampler2D normu; +in float fragTrans; in vec2 texCoord; in vec4 fragCoord; out vec4 FragColor; @@ -25,6 +26,7 @@ void main() vec3 Falloff = vec3(0.4, 0.1, 0.002); vec4 DiffuseColor = texture2D(textu, texCoord); + DiffuseColor *= fragTrans; if (DiffuseColor.a < 0.1f) discard; |