public void Apply(int pass) { shaderParams.Set(brightThresholdKey, BrightThreshold); shaderParams.Set(inversedGammaCorrectionKey, InversedGammaCorrection); PlatformRenderer.SetBlendState(disabledBlendingState); PlatformRenderer.SetShaderProgram(BloomShaderProgram.GetInstance()); PlatformRenderer.SetShaderParams(shaderParamsArray); }
public static BloomShaderProgram GetInstance() => instance ?? (instance = new BloomShaderProgram());