From 0a9b3e8885e67a6eadbe59ff0b81f668f46fe15b Mon Sep 17 00:00:00 2001 From: Timur Gafarov Date: Thu, 7 Feb 2019 19:49:55 +0300 Subject: [PATCH] Updated to latest Dagon --- tutorial1/main.d | 4 ++++ tutorial2/main.d | 4 ++++ tutorial3/main.d | 4 ++++ tutorial4/main.d | 2 +- tutorial5/main.d | 1 + 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/tutorial1/main.d b/tutorial1/main.d index feb1b9d..57f228f 100644 --- a/tutorial1/main.d +++ b/tutorial1/main.d @@ -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); diff --git a/tutorial2/main.d b/tutorial2/main.d index ee6f7dc..8b36a0a 100644 --- a/tutorial2/main.d +++ b/tutorial2/main.d @@ -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); diff --git a/tutorial3/main.d b/tutorial3/main.d index 1f594d0..b635783 100644 --- a/tutorial3/main.d +++ b/tutorial3/main.d @@ -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); diff --git a/tutorial4/main.d b/tutorial4/main.d index 5785781..031dc6b 100644 --- a/tutorial4/main.d +++ b/tutorial4/main.d @@ -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); diff --git a/tutorial5/main.d b/tutorial5/main.d index affc096..6141de5 100644 --- a/tutorial5/main.d +++ b/tutorial5/main.d @@ -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);