Fixed shadow not being fully transparent

This commit is contained in:
Maximilian Giller 2023-01-26 20:14:45 +01:00
parent 8a1ec659a2
commit cc5b66e338
2 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@
int main() int main()
{ {
FastScene scene; FastScene scene;
scene.setBackgroundColor(Color(0.529f, 0.808f, 0.922f)); scene.setBackgroundColor(Color(0.529f, 0.808f, 0.922f) * 0.2f);
// Add lights // Add lights
auto mainLight = std::make_shared<SunLight>(Vector3d(-1.0f, -0.5f, -1.0f), 10.0f, Color(1, 0.79f, 0.62f)); auto mainLight = std::make_shared<SunLight>(Vector3d(-1.0f, -0.5f, -1.0f), 10.0f, Color(1, 0.79f, 0.62f));

View file

@ -15,11 +15,11 @@ struct CloudSettings
int densitySamples = 100; int densitySamples = 100;
int lightSamples = 100; int lightSamples = 100;
float scale = 10; float scale = 10;
float densityOffset = -0.55f; float densityOffset = -0.57f;
float densityIntensity = 7.0f; float densityIntensity = 7.0f;
float darknessThreshold = 0.07f; float darknessThreshold = 0.07f;
float shadowLightAbsorption = 2;
float shadowIntensity = 0.8f; float shadowIntensity = 0.8f;
float shadowLightAbsorption = 1;
float lightAbsorptionTowardsLight = 0.94f; float lightAbsorptionTowardsLight = 0.94f;
float lightAbsorptionThroughCloud = 0.85f; float lightAbsorptionThroughCloud = 0.85f;
}; };