mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-15 20:02:05 +00:00
[idd] fix the HDR16 to HDR10 post processor
`linear` is a HLSL keyword
This commit is contained in:
@@ -48,9 +48,9 @@ bool CHDR16to10Effect::Init(const ComPtr<ID3D12Device3>& device)
|
||||
"[numthreads(" POST_PROCESS_THREADS_STR ", " POST_PROCESS_THREADS_STR ", 1)]\n"
|
||||
"void main(uint3 dt : SV_DispatchThreadID)\n"
|
||||
"{\n"
|
||||
" float3 linear = src[dt.xy].rgb * ReferenceWhiteNits;\n"
|
||||
" float3 linearValue = src[dt.xy].rgb * ReferenceWhiteNits;\n"
|
||||
" // scRGB to PQ (ST.2084)\n"
|
||||
" float3 Y = linear / 10000.0;\n"
|
||||
" float3 Y = linearValue / 10000.0;\n"
|
||||
" float3 Ym1 = pow(max(Y, 0.0), PQ_m1);\n"
|
||||
" float3 pq = pow((PQ_c1 + PQ_c2 * Ym1) / (1.0 + PQ_c3 * Ym1), PQ_m2);\n"
|
||||
" dst[dt.xy] = float4(pq, src[dt.xy].a);\n"
|
||||
|
||||
Reference in New Issue
Block a user