Interior/Exterior seperation for DoF?
Posted: 07 Dec 2015, 00:40
Is this possible?
Code: Select all
float2 fIntExtVar <
string UIName="Interior/Exterior-"; string UIWidget="Spinner"; float UIMin=0.0; float UIMax=10.0;
> = {1.0, 1.0}; // {Interior, Exterior}
---------------------
finput = lerp(fIntExtVar.x, fIntExtVar.y, EInteriorFactor);
Code: Select all
float fGreyPoint <
string UIName="HDR-ALU: Grey Point"; string UIWidget="Spinner"; float UIMin=0.0; float UIMax=1.0;
> = {1.0, 1.0};
---------------------
finput = lerp(fIntExtVar.x, fIntExtVar.y, EInteriorFactor);
float fMiddleTone <
string UIName="HDR-ALU: Middle Tone"; string UIWidget="Spinner"; float UIMin=0.0; //float UIMax=25.0;
> = {1.0, 1.0};
---------------------
finput = lerp(fIntExtVar.x, fIntExtVar.y, EInteriorFactor);
Code: Select all
float fIntensity1 < string UIName="Intensity1"; string UIWidget="Spinner"; > = {1.0}; // separated value nr1
float fIntensity2 < string UIName="Intensity2"; string UIWidget="Spinner"; > = {1.0}; // separated value nr2
or
float2 fIntensity2 < string UIName="Intensity2"; string UIWidget="Spinner"; > = {1.0, 1.0}; // separated value nr1&2
float fIntensity = lerp(fIntensity1, fIntensity2, Factor); // value being split into two
color.rgb *= fIntensity // Inital value