-
Notifications
You must be signed in to change notification settings - Fork 371
Open
Description
I encountered a rather serious issue. Using this JPG image and applying a simple filter with the following shader (which directly outputs the original image),
fragment half4 brightnessFragment(SingleInputVertexIO fragmentInput [[stage_in]],
texture2d<half> inputTexture [[texture(0)]],
constant BrightnessUniform& uniform [[ buffer(1) ]])
{
constexpr sampler quadSampler;
half4 color = inputTexture.sample(quadSampler, fragmentInput.textureCoordinate);
return half4(color.rgb, 1.0);
}
the result should theoretically remain unchanged. However, the resulting image shows a noticeable decrease in saturation. Below are the original image and the resulting image.
Metadata
Metadata
Assignees
Labels
No labels