Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow render lights in frame buffer objects #90

Merged
merged 1 commit into from
Nov 10, 2015
Merged

Conversation

leruaa
Copy link
Contributor

@leruaa leruaa commented Oct 31, 2015

I needed to render lights in a frame buffer object, so I did this small refactoring.

I use it that way:

rayHandler.setCombinedMatrix(cam);
rayHandler.update();
rayHandler.prepareRender();

buffer.begin();
Gdx.gl.glClearColor(1, 1, 1, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
rayHandler.renderOnly();
buffer.end();

rinold added a commit that referenced this pull request Nov 10, 2015
Allow render lights in frame buffer objects
@rinold rinold merged commit af9f8f4 into libgdx:master Nov 10, 2015
@rinold
Copy link
Contributor

rinold commented Nov 10, 2015

Thanks for PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants