public void UpdateGBlur(GBlur gb) { if (!needsUpdate) { return; } SetInt("_GBlurLOD", gb.LOD); SetInt("_GBlurTileSize", gb.TileSize); SetInt("_GBlurSampleLen", gb.SampleLen); SetInt("_GBlurSize", gb.BlurSize); SetFloat("_GBlurInvDomainSigma", gb.InvDomainSigma); SetFloat("_GBlurDomainVariance", gb.DomainVariance); SetFloat("_GBlurDomainBias", gb.DomainBias); SetFloat("_GBlurMean", gb.Mean); if (!gb.UsePreCalc) { return; } SetFloatArray("_GBlurOffsetX", gb.OffsetX); SetFloatArray("_GBlurOffsetY", gb.OffsetY); SetFloatArray("_GBlurDomainWeight", gb.DomainWeight); }
public void RenderGBlur(int src, int dst, GBlur gb) { RenderGBlur(src, workRT[dst], gb); }
public void RenderGBlur(int src, RT dst, GBlur gb) { Blit(src, dst, gb.UsePreCalc ? "GBlur2" : "GBlur"); }