mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 14:36:40 -04:00
workaround for HLSL error X4579
This commit is contained in:
parent
e3dd3d565c
commit
44010974fc
@ -1,5 +1,6 @@
|
||||
#define gammaCorrectRead(v) pow(v, float3(gammaCorrection,gammaCorrection,gammaCorrection))
|
||||
#define gammaCorrectOutput(v) pow(v, float3(1.f/gammaCorrection,1.f/gammaCorrection,1.f/gammaCorrection))
|
||||
#define gammaCorrectRead(v) pow(max(v, 0.00001f), float3(gammaCorrection,gammaCorrection,gammaCorrection))
|
||||
#define gammaCorrectOutput(v) pow(max(v, 0.00001f), float3(1.f/gammaCorrection,1.f/gammaCorrection,1.f/gammaCorrection))
|
||||
|
||||
|
||||
|
||||
#if SH_HLSL == 1 || SH_CG == 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user