Draw order, light and ambientColor help

May 8, 2012 at 10:26 PM

I want a texture to be drawn over a light but under the ambientColor. Is this possible? Because as I see it now all krypton lights and ambient color is drawn at Krypton.Draw(gameTime). I use  Krypton.SpriteBatchCompatablityEnabled = true; if that changes anything.

Because Krypton.Draw(gameTime) is drawn outside the my spritebatch.begin() / end(). I guess I can't use spriteBatch.SpriteSortMode to fix this.

Also is it possible to have black lights when ambientColor is set to a bright value as 255? Give the same effect as white light give when ambientColor is set to a low value as 0.

Developer
May 22, 2012 at 8:40 PM
blcnag wrote:

I want a texture to be drawn over a light but under the ambientColor. Is this possible?

I'm not exactly sure what you mean. Could you provide a picture reference?

Developer
May 22, 2012 at 8:41 PM
blcnag wrote:

Also is it possible to have black lights when ambientColor is set to a bright value as 255? Give the same effect as white light give when ambientColor is set to a low value as 0.

Oh, and I have not tried this yet. I imagine that it would be visible, so long as you have something other than black set to your background.