diff --git a/materials/texture.yaml b/materials/texture.yaml index d1641a7..b1723ee 100644 --- a/materials/texture.yaml +++ b/materials/texture.yaml @@ -22,12 +22,8 @@ fragmentShader: | uniform sampler2D Texture; uniform float TextureAlpha; - vec4 textureColours; - float alpha; out vec4 finalColour; void main() { - textureColours = texture(Texture, Texcoord); - alpha = textureColours.a; - finalColour = vec4(textureColours.rgb, alpha * TextureAlpha); + finalColour = texture(Texture, Texcoord) * vec4(1, 1, 1, TextureAlpha); }