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