Example #1
0
        protected FXAAEffect(FXAAEffect cloneSource)
            : base(cloneSource)
        {
            CacheEffectParameters(cloneSource);

            AntialiasingEnabled = cloneSource.AntialiasingEnabled;
        }
Example #2
0
 void CacheEffectParameters(FXAAEffect cloneSource)
 {
     subPixelAliasingRemovalParam = Parameters["SubPixelAliasingRemoval"];
     edgeThresholdParam           = Parameters["EdgeThreshold"];
     edgeThresholdMinParam        = Parameters["EdgeThresholdMin"];
     consoleEdgeSharpnessParam    = Parameters["ConsoleEdgeSharpness"];
     consoleEdgeThresholdParam    = Parameters["ConsoleEdgeThreshold"];
     consoleEdgeThresholdMinParam = Parameters["ConsoleEdgeThresholdMin"];
     inverseViewportSizeParam     = Parameters["InverseViewportSize"];
     consoleSharpnessParam        = Parameters["ConsoleSharpness"];
     consoleOpt1Param             = Parameters["ConsoleOpt1"];
     consoleOpt2Param             = Parameters["ConsoleOpt2"];
     projectionParam = Parameters["Projection"];
     viewParam       = Parameters["View"];
     worldParam      = Parameters["World"];
 }