Beispiel #1
0
 public Bloom(IContentLoader contentLoader)
 {
     _extract = new OnePassPostProcessShader(contentLoader.LoadPixelShader("Extract.glsl"));
     _blur    = new AvgBlur(contentLoader);
     _add     = new Addition(contentLoader);
 }
Beispiel #2
0
 public SSAOWithBlur(IContentLoader contentLoader, float blurKernelSize)
 {
     _ssao   = new OnePassPostProcessShader(contentLoader.LoadPixelShader("SSAO.glsl"));
     _blur   = new AvgBlur(contentLoader, blurKernelSize);
     _shader = contentLoader.LoadPixelShader("saturationMap.glsl");
 }