void DoInterferences(RenderTexture source, RenderTexture destination, InterferenceSettings settings) { material.SetVector("_Params", new Vector3(settings.speed, settings.density, settings.maxDisplacement)); Graphics.Blit(source, destination, material, 0); }
protected virtual void DoInterferences(RenderTexture source, RenderTexture destination, InterferenceSettings settings) { Material.SetVector("_Params", new Vector3(settings.Speed, settings.Density, settings.MaxDisplacement)); Graphics.Blit(source, destination, Material, 0); }