Example #1
0
        public void UpdateSharpen(Sharpen s)
        {
            if (!needsUpdate)
            {
                return;
            }

            SetInt("_SharpenLOD", s.LOD);
            SetInt("_SharpenTileSize", s.TileSize);
            SetInt("_SharpenSampleLen", s.SampleLen);
            SetInt("_SharpenSize", s.BlurSize);
            SetFloat("_SharpenInvDomainSigma", s.InvDomainSigma);
            SetFloat("_SharpenDomainVariance", s.DomainVariance);
            SetFloat("_SharpenDomainBias", s.DomainBias);
            SetFloat("_SharpenMean", s.Mean);
            SetFloat("_SharpenSharpness", s.Sharpness);
        }
Example #2
0
 public void RenderSharpen(int src, int dst, Sharpen s)
 {
     RenderSharpen(src, workRT[dst], s);
 }
Example #3
0
 public void RenderSharpen(int src, RT dst, Sharpen s)
 {
     Blit(src, dst, s.UnsharpMask ? "UnsharpMask" : "Sharpen");
 }