What's wrong with this file:
Code:
#if ( POSTPROCESS == 2 )
float NewAdaptationMaxV2 = lerp(AdaptationMaxV2Ext.x, AdaptationMaxV2Ext.y, ENightDayFactor);
float NewAdaptationMinV2 = lerp(AdaptationMinV2Ext.x, AdaptationMinV2Ext.y, ENightDayFactor);
float NewBrightnessV2 = lerp(BrightnessV2Ext.x, BrightnessV2Ext.y, ENightDayFactor);
float NewBlacknessV2 = lerp(BlacknessV2Ext.x, BlacknessV2Ext.y, ENightDayFactor);
float NewIntensityContrastV2 = lerp(IntensityContrastV2Ext.x, IntensityContrastV2Ext.y, ENightDayFactor);
float NewColorSaturationV2 = lerp(ColorSaturationV2Ext.x, ColorSaturationV2Ext.y, ENightDayFactor);
float NewToneMappingOversaturationV2 = lerp(ToneMappingOversaturationV2Ext.x, ToneMappingOversaturationV2Ext.y, ENightDayFactor);
float NewToneMappingCurveV2 = lerp(ToneMappingCurveV2Ext.x, ToneMappingCurveV2Ext.y, ENightDayFactor);
if ( EInteriorFactor ) {
NewAdaptationMaxV2 = lerp(AdaptationMaxV2Int.x, AdaptationMaxV2Int.y, ENightDayFactor);
NewAdaptationMinV2 = lerp(AdaptationMinV2Int.x, AdaptationMinV2Int.y, ENightDayFactor);
NewBrightnessV2 = lerp(BrightnessV2Int.x, BrightnessV2Int.y, ENightDayFactor);
NewBlacknessV2 = lerp(BlacknessV2Int.x, BlacknessV2Int.y, ENightDayFactor);
NewIntensityContrastV2 = lerp(IntensityContrastV2Int.x, IntensityContrastV2Int.y, ENightDayFactor);
NewColorSaturationV2 = lerp(ColorSaturationV2Int.x, ColorSaturationV2Int.y, ENightDayFactor);
NewToneMappingOversaturationV2 = lerp(ToneMappingOversaturationV2Int.x, ToneMappingOversaturationV2Int.y, ENightDayFactor);
NewToneMappingCurveV2 = lerp(ToneMappingCurveV2Int.x, ToneMappingCurveV2Int.y, ENightDayFactor);
};
grayadaptation = max(grayadaptation, 0.0);
grayadaptation = min(grayadaptation, 50.0);
color.xyz = color.xyz / (grayadaptation * NewAdaptationMaxV2 + NewAdaptationMinV2);
color.xyz *= NewBrightnessV2;
color.xyz += NewBlacknessV2;
float3 xncol = normalize(color.xyz);
float3 scl = color.xyz/xncol.xyz;
scl = pow(scl, NewIntensityContrastV2);
xncol.xyz = pow(xncol.xyz, NewColorSaturationV2);
color.xyz = scl * xncol.xyz;
float lumamax = NewToneMappingOversaturationV2;
color.xyz = (color.xyz * (1.0 + color.xyz / lumamax)) / (color.xyz + NewToneMappingCurveV2);
#endif
That's just an excerpt of the full file. But I'm having trouble. As it shows there, it does not distinguish between interior and exteriors. With the above code, the only settings that effect the scene are the interior setings. If I set
Code:
if (EInteriorFactor == 0 )
then the only settings that effect the scene are the exterior settings. Why? Is the "EInteriorFactor" setting not working properly?
By the way, this is an ENB for OBLIVION. Oblivion. Any ideas what's wrong and how I can make it work properly. My onl;y guess is that EInteriorFactor is bugged. Help is greatly appreciated.