mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 15:09:19 +02:00
Some renaming
This commit is contained in:
7
betterRenderer/shaders/manul/apply_auto_exposure.hlsl
Normal file
7
betterRenderer/shaders/manul/apply_auto_exposure.hlsl
Normal file
@@ -0,0 +1,7 @@
|
||||
RWTexture2D<float4> g_ColorImage : register(u0);
|
||||
Texture2D<float2> g_AutoExposureTexture : register(t0);
|
||||
|
||||
[numthreads(8, 8, 1)]
|
||||
void CS_ApplyAutoExposure(uint3 PixCoord : SV_DispatchThreadID) {
|
||||
g_ColorImage[PixCoord.xy] = max(1.e-6, g_ColorImage[PixCoord.xy] * pow(2., g_AutoExposureTexture[uint2(0, 0)].x));
|
||||
}
|
||||
Reference in New Issue
Block a user