Hi,
thx for the lib. I'm using it and it works flawless so far.
However I have problems doing something specific: I want to render a screen of my level - including the light/darkness - to a texture. My level is rendered to the framebuffer correctly, but light&darkness don't show up on my texture.
- Code: Select all
FrameBuffer m_FrameBuffer = new FrameBuffer(Format.RGB565, (int)(width * m_fboScaler), (int)(height * m_fboScaler), false);
TextureRegion m_OutTexture = new TextureRegion(m_FrameBuffer .getColorBufferTexture());
m_SpriteBatch.begin();
m_FrameBuffer.begin();
m_Level.DrawContent();
m_Level.DrawLights();
m_FrameBuffer.end();
m_SpriteBatch.end();
What am I doing wrong? Any suggestions to fix this are greatly appreciated.
Cheers, Gooni.