diff options
Diffstat (limited to 'src/render/shaders/glsl/CMrgbx.frag')
| -rw-r--r-- | src/render/shaders/glsl/CMrgbx.frag | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/render/shaders/glsl/CMrgbx.frag b/src/render/shaders/glsl/CMrgbx.frag index e2b1a838..d37328de 100644 --- a/src/render/shaders/glsl/CMrgbx.frag +++ b/src/render/shaders/glsl/CMrgbx.frag @@ -7,14 +7,9 @@ uniform sampler2D tex; uniform int sourceTF; // eTransferFunction uniform int targetTF; // eTransferFunction -uniform mat4x2 targetPrimaries; +uniform mat3 targetPrimariesXYZ; uniform float alpha; - -uniform bool discardOpaque; -uniform bool discardAlpha; -uniform float discardAlphaValue; - uniform bool applyTint; uniform vec3 tint; @@ -25,14 +20,8 @@ layout(location = 0) out vec4 fragColor; void main() { vec4 pixColor = vec4(texture(tex, v_texcoord).rgb, 1.0); - if (discardOpaque && pixColor.a * alpha == 1.0) - discard; - - if (discardAlpha && pixColor.a <= discardAlphaValue) - discard; - // this shader shouldn't be used when skipCM == 1 - pixColor = doColorManagement(pixColor, sourceTF, targetTF, targetPrimaries); + pixColor = doColorManagement(pixColor, sourceTF, targetTF, targetPrimariesXYZ); if (applyTint) pixColor.rgb *= tint; |
