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); }
public void RenderSharpen(int src, int dst, Sharpen s) { RenderSharpen(src, workRT[dst], s); }
public void RenderSharpen(int src, RT dst, Sharpen s) { Blit(src, dst, s.UnsharpMask ? "UnsharpMask" : "Sharpen"); }