diff --git a/com.unity.render-pipelines.high-definition/Editor/SceneTemplates/Outdoors/OutdoorsScene.unity b/com.unity.render-pipelines.high-definition/Editor/SceneTemplates/Outdoors/OutdoorsScene.unity index bf890535a2b..2d42c6fa6e7 100644 --- a/com.unity.render-pipelines.high-definition/Editor/SceneTemplates/Outdoors/OutdoorsScene.unity +++ b/com.unity.render-pipelines.high-definition/Editor/SceneTemplates/Outdoors/OutdoorsScene.unity @@ -38,7 +38,7 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_IndirectSpecularColor: {r: 2155.1436, g: 2259.3691, b: 3297.336, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -153,7 +153,7 @@ Light: m_Type: 1 m_Shape: 0 m_Color: {r: 1, g: 1, b: 1, a: 1} - m_Intensity: 110000 + m_Intensity: 130000 m_Range: 10 m_SpotAngle: 30 m_InnerSpotAngle: 21.80208 @@ -194,7 +194,7 @@ Light: m_RenderingLayerMask: 1 m_Lightmapping: 4 m_LightShadowCasterMode: 2 - m_AreaSize: {x: 1, y: 1} + m_AreaSize: {x: 0.5, y: 0.5} m_BounceIntensity: 1 m_ColorTemperature: 6500 m_UseColorTemperature: 1 @@ -237,7 +237,7 @@ MonoBehaviour: m_PointlightHDType: 0 m_SpotLightShape: 0 m_AreaLightShape: 0 - m_Intensity: 110000 + m_Intensity: 130000 m_EnableSpotReflector: 0 m_LuxAtDistance: 1 m_InnerSpotPercent: 0 @@ -311,6 +311,10 @@ MonoBehaviour: m_NormalBias: 0.75 m_SlopeBias: 0.5 m_ShadowUpdateMode: 0 + m_AlwaysDrawDynamicShadows: 0 + m_UpdateShadowOnLightMovement: 0 + m_CachedShadowTranslationThreshold: 0.01 + m_CachedShadowAngularThreshold: 0.5 m_BarnDoorAngle: 90 m_BarnDoorLength: 0.05 m_preserveCachedShadow: 0 diff --git a/com.unity.render-pipelines.high-definition/Editor/SceneTemplates/OutdoorsDXR/OutdoorsDXRScene.unity b/com.unity.render-pipelines.high-definition/Editor/SceneTemplates/OutdoorsDXR/OutdoorsDXRScene.unity index d110c045da5..916370a735f 100644 --- a/com.unity.render-pipelines.high-definition/Editor/SceneTemplates/OutdoorsDXR/OutdoorsDXRScene.unity +++ b/com.unity.render-pipelines.high-definition/Editor/SceneTemplates/OutdoorsDXR/OutdoorsDXRScene.unity @@ -38,7 +38,7 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_IndirectSpecularColor: {r: 2155.1436, g: 2259.3691, b: 3297.336, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -153,7 +153,7 @@ Light: m_Type: 1 m_Shape: 0 m_Color: {r: 1, g: 1, b: 1, a: 1} - m_Intensity: 110000 + m_Intensity: 130000 m_Range: 10 m_SpotAngle: 30 m_InnerSpotAngle: 21.80208 @@ -194,7 +194,7 @@ Light: m_RenderingLayerMask: 1 m_Lightmapping: 4 m_LightShadowCasterMode: 2 - m_AreaSize: {x: 1, y: 1} + m_AreaSize: {x: 0.5, y: 0.5} m_BounceIntensity: 1 m_ColorTemperature: 6500 m_UseColorTemperature: 1 @@ -237,7 +237,7 @@ MonoBehaviour: m_PointlightHDType: 0 m_SpotLightShape: 0 m_AreaLightShape: 0 - m_Intensity: 110000 + m_Intensity: 130000 m_EnableSpotReflector: 0 m_LuxAtDistance: 1 m_InnerSpotPercent: 0 @@ -311,6 +311,10 @@ MonoBehaviour: m_NormalBias: 0.75 m_SlopeBias: 0.5 m_ShadowUpdateMode: 0 + m_AlwaysDrawDynamicShadows: 0 + m_UpdateShadowOnLightMovement: 0 + m_CachedShadowTranslationThreshold: 0.01 + m_CachedShadowAngularThreshold: 0.5 m_BarnDoorAngle: 90 m_BarnDoorLength: 0.05 m_preserveCachedShadow: 0 diff --git a/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.cs b/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.cs index ca7c4930573..fcafd16e59f 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/Lighting/Light/HDAdditionalLightData.cs @@ -51,7 +51,7 @@ public static BoolScalableSetting UseContactShadow(HDRenderPipelineAsset hdrp) = /// /// The default intensity value for directional lights in Lux /// - public const float k_DefaultDirectionalLightIntensity = Mathf.PI; // In lux + public const float k_DefaultDirectionalLightIntensity = 100000; // In lux /// /// The default intensity value for punctual lights in Lumen /// @@ -1438,7 +1438,7 @@ public bool alwaysDrawDynamicShadows bool m_UpdateShadowOnLightMovement = false; /// /// Whether a cached shadow map will be automatically updated when the light transform changes (more than a given threshold set via cachedShadowTranslationUpdateThreshold - /// and cachedShadowAngleUpdateThreshold). + /// and cachedShadowAngleUpdateThreshold). /// /// public bool updateUponLightMovement @@ -1479,7 +1479,7 @@ public float cachedShadowTranslationUpdateThreshold [SerializeField] float m_CachedShadowAngularThreshold = 0.5f; /// - /// If any transform angle of the light is over this threshold (in degrees) since last update, a cached shadow which is set to update upon light movement + /// If any transform angle of the light is over this threshold (in degrees) since last update, a cached shadow which is set to update upon light movement /// (updateUponLightMovement from script or Update on Light Movement in UI) is updated. /// public float cachedShadowAngleUpdateThreshold @@ -2156,7 +2156,7 @@ internal int UpdateShadowRequest(HDCamera hdCamera, HDShadowManager manager, HDS shadowRequest.isInCachedAtlas = isSampledFromCache; shadowRequest.isMixedCached = updateType == ShadowMapUpdateType.Mixed; - shadowRequest.shouldUseCachedShadowData = false; + shadowRequest.shouldUseCachedShadowData = false; Vector2 viewportSize = resolutionRequest.resolution;