From a90441c25515ba624950cb43750f9ad99562335d Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Tue, 24 Jan 2023 07:54:33 +0100 Subject: [PATCH] Updated fancy scene --- fancy1.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/fancy1.cpp b/fancy1.cpp index 87e5c42..8dc7c30 100644 --- a/fancy1.cpp +++ b/fancy1.cpp @@ -38,17 +38,13 @@ int main() busShader); // Add floor -// auto noise = std::make_shared(32); -// noise->invert = true; -// auto noiseShader = std::make_shared(noise, 0.2f); - auto noiseShader = std::make_shared(std::make_shared(256, 10), 0.02f); -// auto floorShader = std::make_shared(Color(0.9f, 0.9f, 0.9f)); + auto floorShader = std::make_shared(Color(0.9f, 0.9f, 0.9f)); scene.add(std::make_shared(Vector3d(0.0f, 0.0f, 0.0f), Vector3d(0.0f, 1.0f, 0.0f), - noiseShader)); + floorShader)); // Add box for volume shader auto cloudSettings = CloudSettings(); - cloudSettings.scale = 0.2f; + cloudSettings.scale = 5.0f; cloudSettings.densityIntensity = 2.0f; cloudSettings.densityTreshold = 0.55f; auto cloudShader = std::make_shared(cloudSettings);