Skip to content

Commit

Permalink
Properly set directional light
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjglgamedev committed Nov 12, 2023
1 parent 7c85c12 commit 8715a16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public LightsController(Scene scene) {
scene.getAmbientLight().set(0.4f, 0.4f, 0.4f, 1.0f);
List<Light> lights = new ArrayList<>();
directionalLight = new Light();
directionalLight.getColor().set(1.0f, 1.0f, 0.5f, 1.0f);
directionalLight.getColor().set(1.0f, 1.0f, 0.5f, 0.0f);
lights.add(directionalLight);
Light[] lightArr = new Light[lights.size()];
lightArr = lights.toArray(lightArr);
Expand Down

0 comments on commit 8715a16

Please sign in to comment.