예제 #1
0
 protected override void OnRelease()
 {
     ProcessedTexture = null;
     Objects.Clear();
     PostProcessingActions = null;
     Material                = null;
     SourceTextureBuffer     = null;
     FirstTemporaryBuffer    = null;
     SecondTemporaryBuffer   = null;
     ColorCorrectionBuffer   = null;
     ColorCorrectionMaterial = null;
     BlurBuffer              = null;
     BlurMaterial            = null;
     BloomBuffer             = null;
     BloomMaterial           = null;
     DistortionBuffer        = null;
     DistortionMaterial      = null;
     SharpenBuffer           = null;
     SharpenMaterial         = null;
     NoiseBuffer             = null;
     NoiseTexture            = null;
     NoiseMaterial           = null;
     FXAABuffer              = null;
     FXAAMaterial            = null;
     VignetteMaterial        = null;
     TransparentTexture      = null;
     AlphaDiffuseMaterial    = null;
     AddDiffuseMaterial      = null;
     OpaqueDiffuseMaterial   = null;
 }
예제 #2
0
    void OnRenderImage(RenderTexture src, RenderTexture dest)
    {
        FXAAMaterial.SetFloat(ID_SHADERPARAM_EDGE_THRESHOLD_MIN, edgeThresholdMin);
        FXAAMaterial.SetFloat(ID_SHADERPARAM_EDGE_THRESHOLD, edgeThreshold);
        FXAAMaterial.SetFloat(ID_SHADERPARAM_EDGE_SHARPNESS, edgeSharpness);

        Graphics.Blit(src, dest, FXAAMaterial);
    }