From db381e39916a10235e37d6d1ae3b38dde481f163 Mon Sep 17 00:00:00 2001 From: Turanszki Janos Date: Thu, 29 Oct 2020 21:02:22 +0100 Subject: [PATCH] realistic sky: modified sun size --- WickedEngine/skyAtmosphere.hlsli | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WickedEngine/skyAtmosphere.hlsli b/WickedEngine/skyAtmosphere.hlsli index 29d4e2128..d8b4f4d06 100644 --- a/WickedEngine/skyAtmosphere.hlsli +++ b/WickedEngine/skyAtmosphere.hlsli @@ -475,7 +475,8 @@ float3 GetCameraPlanetPos(AtmosphereParameters atmosphere, float3 cameraPosition float3 GetSunLuminance(float3 worldPosition, float3 worldDirection, float3 sunDirection, float3 sunIlluminance, AtmosphereParameters atmosphere, Texture2D 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);