diff options
Diffstat (limited to 'src/render/shaders/glsl/CMrgba.frag')
| -rw-r--r-- | src/render/shaders/glsl/CMrgba.frag | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/render/shaders/glsl/CMrgba.frag b/src/render/shaders/glsl/CMrgba.frag index 1e4e024d..b6696649 100644 --- a/src/render/shaders/glsl/CMrgba.frag +++ b/src/render/shaders/glsl/CMrgba.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 = texture(tex, v_texcoord); - 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; |
