Skip to content

Commit

Permalink
Simplifying texture material
Browse files Browse the repository at this point in the history
  • Loading branch information
rumblesan committed May 20, 2021
1 parent 07b20e4 commit 4bf89ec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions materials/texture.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 4bf89ec

Please sign in to comment.