Cleanup Media Player

This commit is contained in:
brunoherbelin
2020-03-22 23:33:29 +01:00
parent 31e2b6da79
commit ca0db135e7
7 changed files with 125 additions and 52 deletions

View File

@@ -12,7 +12,8 @@ uniform float brightness;
void main()
{
vec4 texturecolor = texture(sourceTexture, vertexUV.xy);
vec3 transformedRGB = mix(vec3(0.62), texturecolor.rgb, contrast + 1.0) + brightness;
FragColor = vec4(color, 1.0) * vec4(transformedRGB, texturecolor.a);
transformedRGB *= color;
FragColor = vec4(transformedRGB, texturecolor.a);
}