Skip to content

Commit

Permalink
Update Sources/Plasma/FeatureLib/pfMetalPipeline/ShaderSrc/GammaCorre…
Browse files Browse the repository at this point in the history
…ction.metal

Co-authored-by: Adam Johnson <[email protected]>
  • Loading branch information
colincornaby and Hoikas committed May 1, 2024
1 parent a21d85c commit 9484a07
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ fragment half4 gammaCorrectFragmentInPlace(GammaVertexOut in [[stage_in]]
texture1d_array<ushort> LUT [[texture(1)]])
{
return {
half(float(LUT.sample(lutSampler, color.r, 0).x)/USHRT_MAX),
half(float(LUT.sample(lutSampler, color.g, 1).x)/USHRT_MAX),
half(float(LUT.sample(lutSampler, color.b, 2).x)/USHRT_MAX),
half(float(LUT.sample(lutSampler, color.r, 0).x) / USHRT_MAX),
half(float(LUT.sample(lutSampler, color.g, 1).x) / USHRT_MAX),
half(float(LUT.sample(lutSampler, color.b, 2).x) / USHRT_MAX),
1.0
};
}
Expand Down

0 comments on commit 9484a07

Please sign in to comment.