Original Post
I'm going crazy getting this bloom effect to work... I'm not sure whether the problem is with rendering the quad or setting the semantic values. anyway, from the images I can tell something is happening at least :/ This is my code to draw my quad with the rendertarget. ORIGINAL
WITH BLOOM!?
public void Draw(Surface _backBuffer, Texture _renderTexture)
{
dev.SetRenderTarget(0,_backBuffer);
myeffect.World = Matrix.Identity;
myeffect.Texture = _renderTexture;
myeffect.SetRealTimeShader();
int numPasses = myeffect.effect.Begin(0);
for (int pass = 0; pass < numPasses; pass++)
{
myeffect.effect.BeginPass(pass);
dev.SetTexture(0,_renderTexture);
dev.SetStreamSource(0, vertBuffer, 0);
dev.VertexFormat = vertFormat;
dev.DrawPrimitives(PrimitiveType.TriangleFan, 0, 2);
myeffect.effect.EndPass();
}
myeffect.effect.End();
dev.SetTexture(0,null);
dev.SetRenderTarget(0,_renderTexture.GetSurfaceLevel(0));
}
WITH BLOOM!?