I am able to draw a sprite to the screen and change the opacity values to look like night and day. Not I am trying to achieve lighting effects for various sections of the screen that will not be affected by the dark overlay. I'm trying to determine how I can clip the second sprite with the first CircleShape so I will have a start on a dynamic lighting effect.
Dim tmpLight As New CircleShape(300)
tmpLight.Texture = New Texture(LightGfx)
tmpLight.TextureRect = New IntRect(LightGfxInfo.Width / 2 - 150, LightGfxInfo.Height / 2 - 150, 300, 300)
tmpLight.FillColor = New SFML.Graphics.Color(255, 255, 255, 255) 'CurrLevel)
tmpLight.Position = New Vector2f(0, 0)
GameWindow.Draw(tmpLight)
Dim tmpSprite As Sprite
tmpSprite = New Sprite(NightGfx)
tmpSprite.TextureRect = New IntRect(0, 0, frmMainGame.GameScreen.Width, frmMainGame.GameScreen.Height)
tmpSprite.Color = New SFML.Graphics.Color(255, 255, 255, CurrLevel)
tmpSprite.Position = New Vector2f(0, 0)
GameWindow.Draw(tmpSprite)
I do not see any way that I am able to clip the Sprite by the CircleShape. I would really appreciate a suggestion on a method to achieve this.