Пример #1
0
 public static void InitMemberByInstance(Bokeh bokeh)
 {
     pointOfFocus  = bokehEffect.pointOfFocus;
     focusDistance = bokehEffect.focusDistance;
     fNumber       = bokehEffect.fNumber;
     useCameraFov  = bokehEffect.useCameraFov;
     focalLength   = bokehEffect.focalLength;
     kernelSize    = bokehEffect.kernelSize;
     visualize     = bokehEffect.visualize;
 }
Пример #2
0
        static BokehDef()
        {
            if (bokehEffect == null)
            {
                bokehEffect = Util.GetComponentVar <Bokeh, BokehDef>(bokehEffect);
            }

            focusDistance = 10.0f;
            fNumber       = 1.4f;
            useCameraFov  = true;
            focalLength   = 0.05f;
            kernelSize    = Bokeh.KernelSize.Medium;
            visualize     = false;

            pointOfFocus = null;

            focusedMaid = -1;
        }