mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 21:40:15 +00:00
Removing gamma correction due to caused inconsistencies.
This commit is contained in:
parent
111e38ef25
commit
bd8d793fec
@ -1,7 +1,8 @@
|
||||
#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))
|
||||
|
||||
//#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))
|
||||
|
||||
#define gammaCorrectRead(v) v
|
||||
#define gammaCorrectOutput(v) v
|
||||
|
||||
#if SH_HLSL == 1 || SH_CG == 1
|
||||
|
||||
|
@ -112,7 +112,7 @@
|
||||
shUniform(float, far) @shAutoConstant(far, far_clip_distance)
|
||||
#endif
|
||||
|
||||
shUniform(float, gammaCorrection) @shSharedParameter(gammaCorrection, gammaCorrection)
|
||||
//shUniform(float, gammaCorrection) @shSharedParameter(gammaCorrection, gammaCorrection)
|
||||
|
||||
#if LIGHTING
|
||||
shInput(float3, normalPassthrough)
|
||||
|
@ -137,7 +137,7 @@
|
||||
|
||||
shSampler2D(normalMap) // global normal map
|
||||
|
||||
shUniform(float, gammaCorrection) @shSharedParameter(gammaCorrection, gammaCorrection)
|
||||
//shUniform(float, gammaCorrection) @shSharedParameter(gammaCorrection, gammaCorrection)
|
||||
|
||||
|
||||
@shForeach(@shPropertyString(num_blendmaps))
|
||||
|
Loading…
x
Reference in New Issue
Block a user