Slick Forums

Discuss the Slick 2D Library
It is currently Sat Oct 19, 2019 7:26 pm

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Aug 10, 2017 7:27 pm 

Joined: Thu Aug 10, 2017 7:22 pm
Posts: 1
Hey everyone! I'm having an issue with the "fake lighting" using an alpha map and the player sprite's alpha. I've read that these two conflict but have found no concrete answer on why or how to go about solving the issue. Here is a screenshot of the problem:

And below is the code I am using to render these two:
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);
this.gradient.drawCentered(100, 100);

map.render(gc, sbg, g);
map.renderEntities(gc, sbg, g);
// render UI's.

Is there a way to blend them together or something? Sorry, I'm a bit new at producing light for games as this is my first game and my first attempt at lighting; any help would be greatly appreciated!

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 70 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group