realistic sky: modified sun size

This commit is contained in:
Turanszki Janos
2020-10-29 21:02:22 +01:00
parent 01e49e5c52
commit db381e3991
+2 -1
View File
@@ -475,7 +475,8 @@ float3 GetCameraPlanetPos(AtmosphereParameters atmosphere, float3 cameraPosition
float3 GetSunLuminance(float3 worldPosition, float3 worldDirection, float3 sunDirection, float3 sunIlluminance, AtmosphereParameters atmosphere, Texture2D<float4> transmittanceLutTexture)
{
float sunApexAngleDegree = 0.545; // Angular diameter of sun to earth from sea level, see https://en.wikipedia.org/wiki/Solid_angle
//float sunApexAngleDegree = 0.545; // Angular diameter of sun to earth from sea level, see https://en.wikipedia.org/wiki/Solid_angle
float sunApexAngleDegree = 2.4; // Modified sun size
float sunHalfApexAngleRadian = 0.5 * sunApexAngleDegree * PI / 180.0;
float sunCosHalfApexAngle = cos(sunHalfApexAngleRadian);