 	}
 
 	float pb0 = PowderBeers(lightRayDensity + density, weatherData.g);
-	//float pb1 = PowderBeers(density, weatherData.g);
+	float pb1 = PowderBeers(density, weatherData.g);
 	float hg = HG(-viewRay, normalize(-wsSunPos));
-	vec3 sampleColor = sunColor * pb0 * hg;
+	vec3 sampleColor = sunColor * pb0 * pb0 * hg * 3.0f;
 	
-	/*		
 	//ambient
-	float heightGrad = GetHeightGradient(pos);
-	vec3 ambientColor = mix(zenithColor, sunColor, heightGrad);
-	ambientColor = ambientColor * pb1;
-	sampleColor += ambientColor;
-	*/
+	vec3 ambientColor = sunColor * heightF;
+	ambientColor = ambientColor * pb1 * pb1;
+	sampleColor += ambientColor * 2.0f;
 	
 	return sampleColor;
 }

const float CLOUD_HEIGHT = MAX_CLOUD_ALTITUDE - MIN_CLOUD_ALTITUDE;
const float CLOUD_HEIGHT_INV = 1.0f / CLOUD_HEIGHT;

const int SAMPLE_COUNT = 256;
const float Pi = 3.1415926f;
const vec3 randomV[5] = vec3[5](vec3(-0.010735935, 0.01647018, 0.0062425877),
			                     vec3(-0.06533369, 0.3647007, -0.13746321),

				cloudColor.a += sampleDensity;

				if (sampleDensity > 0.0f)
					cloudColor.rgb += ConeTracingLight(samplePos, cloudColor.a, heightF, lightRay, viewRay, weatherData, mipmapLev);
				
				samplePos += viewRay * stepSizeShort;
			}
