Updated fancy scene

This commit is contained in:
Maximilian Giller 2023-01-24 07:54:33 +01:00
parent 53a4a6d1f0
commit a90441c255

View file

@ -38,17 +38,13 @@ int main()
busShader);
// Add floor
// auto noise = std::make_shared<cloudnoise>(32);
// noise->invert = true;
// auto noiseShader = std::make_shared<NoiseShader>(noise, 0.2f);
auto noiseShader = std::make_shared<NoiseShader>(std::make_shared<PerlinNoise>(256, 10), 0.02f);
// auto floorShader = std::make_shared<SimpleShadowShader>(Color(0.9f, 0.9f, 0.9f));
auto floorShader = std::make_shared<SimpleShadowShader>(Color(0.9f, 0.9f, 0.9f));
scene.add(std::make_shared<InfinitePlane>(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<CloudShader>(cloudSettings);