Skip to content

Commit

Permalink
Updated to latest Dagon
Browse files Browse the repository at this point in the history
  • Loading branch information
gecko0307 committed Feb 7, 2019
1 parent 6495c0a commit 0a9b3e8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tutorial1/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class TestScene: Scene

view = New!Freeview(eventManager, assetManager);

mainSun = createLightSun(Quaternionf.identity, environment.sunColor, environment.sunEnergy);
mainSun.shadow = true;
environment.setDayTime(9, 00, 00);

auto matSuzanne = createMaterial();
matSuzanne.diffuse = Color4f(1.0, 0.2, 0.2, 1.0);

Expand Down
4 changes: 4 additions & 0 deletions tutorial2/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ class TestScene: Scene

view = New!Freeview(eventManager, assetManager);

mainSun = createLightSun(Quaternionf.identity, environment.sunColor, environment.sunEnergy);
mainSun.shadow = true;
environment.setDayTime(9, 00, 00);

auto matSuzanne = createMaterial();
matSuzanne.diffuse = Color4f(1.0, 0.2, 0.2, 1.0);

Expand Down
4 changes: 4 additions & 0 deletions tutorial3/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ class TestScene: Scene

view = New!Freeview(eventManager, assetManager);

mainSun = createLightSun(Quaternionf.identity, environment.sunColor, environment.sunEnergy);
mainSun.shadow = true;
environment.setDayTime(9, 00, 00);

auto matSuzanne = createMaterial();
matSuzanne.diffuse = Color4f(1.0, 0.2, 0.2, 1.0);

Expand Down
2 changes: 1 addition & 1 deletion tutorial4/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TestScene: Scene

view = New!Freeview(eventManager, assetManager);

environment.setDayTime(0, 0, 0);
environment.setDayTime(00, 00, 00);

auto matSuzanne = createMaterial();
matSuzanne.diffuse = Color4f(1.0, 0.2, 0.2, 1.0);
Expand Down
1 change: 1 addition & 0 deletions tutorial5/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class TestScene: Scene

environment.setDayTime(0, 0, 0);
environment.environmentMap = aTexEnvmap.texture;
environment.skyMap = aTexEnvmap.texture;

auto matSuzanne = createMaterial();
matSuzanne.diffuse = Color4f(1.0, 0.2, 0.2, 1.0);
Expand Down

0 comments on commit 0a9b3e8

Please sign in to comment.