Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Can I apply an opacity setting to an entire SpriteBatch?

$
0
0

@BitBull wrote:

Hi,

I would like to apply an opacity setting to a group of sprites at once.

Currently I apply opacity by changing the alpha of the 'tint' value the is supplied to spriteBatch.Draw().

This works fine, but say I have a sprite over a background image and I want this all drawn at 50% opacity I can't draw both at 50% opacity separately as you'd see the background image through the sprite.

Can I somehow draw both as normal and then render the result at 50% opacity without rendering to an offscreen image first?

cheers

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles