17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-06 04:38:37 +01:00

Shade the volumetric clouds by the cloud over each point, not by the density at it

This commit is contained in:
2026-10-17 17:24:51 +02:00
parent 27e5c07837
commit 22bf015939
2 changed files with 26 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ const float CLOUD_EARTH_RADIUS = 6360000.0;
const float CLOUD_FILL_EDGE = 0.45;
const float CLOUD_FILL_CORE = 0.85;
// how fast the density rises inside the edge of a cloud: above 1 the edges are crisper, the inside keeps its density
const float CLOUD_EDGE_SHARPNESS = 2.0;
const float CLOUD_EDGE_SHARPNESS = 3.0;
float cloud_remap(float value, float low, float high, float newlow, float newhigh)
{