Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
added some notes about camera/ortho settings
Browse files Browse the repository at this point in the history
  • Loading branch information
codeanticode committed Mar 28, 2014
1 parent 11f6235 commit 527ac00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/codeanticode/planetarium/Dome.java
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,11 @@ private void endFaceDraw() {

private void renderDome() {
renderBorder();

// This setting might be better for 2.1.2+:
// camera(0, 0, resolution * 0.5f, 0, 0, 0, 0, 1, 0);
// ortho(-width/2, width/2, -height/2, height/2);

camera();
ortho(domeLeft, domeRight, domeBottom, domeTop);
resetMatrix();
Expand Down

0 comments on commit 527ac00

Please sign in to comment.