Skip to content

Commit

Permalink
[Backport 2023.1][Jira # UUM-41081] Adding support to read light inte…
Browse files Browse the repository at this point in the history
…nsity multiplier during bakes

Mixed runtime lights were not considering the intensity multiplier during bakes. These changes fix this behaviour and make bakes more intuitive.
  • Loading branch information
kecho authored and Evergreen committed Aug 4, 2023
1 parent 26c1509 commit e4947e3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* [High Definition Render Pipeline Wizard](Render-Pipeline-Wizard.md)
* [Upgrading to HDRP from the built-in render pipeline](Upgrading-To-HDRP.md)
* [Material Upgrade](Material-Upgrade.md)
* [Upgrading from HDRP 14.x(2022.2) to 14.x(2022.3)](Upgrading-from-2022.2-to-2022.3.md)
* [Upgrading from HDRP 13.x to 14.x](Upgrading-from-2022.1-to-2022.2.md)
* [Upgrading from HDRP 12.x to 13.x](Upgrading-from-2021.2-to-2022.1.md)
* [Upgrading from HDRP 11.x to 12.x](Upgrading-from-2021.1-to-2021.2.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Upgrading HDRP from 2022.2 to 2022.3

In the High Definition Render Pipeline (HDRP), some features work differently between major versions. This document helps you upgrade HDRP from 2022.2 to 2022.3

## Light Baking

Starting from 2022.3, APV and lightmap bakes containing lights that are of type "Mixed" will now consider the "intensity multiplier" property, which was not taken into account previously.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

In the High Definition Render Pipeline (HDRP), some features work differently between major versions. This document helps you upgrade HDRP from 14.x to 15.x.

## Light Baking

Starting from 2022.3, APV and lightmap bakes containing lights that are of type "Mixed" will now consider the "intensity multiplier" property, which was not taken into account previously.

## Rendering Layers

The Receive Decals property of Materials in HDRP does not affect emissive decals anymore when Decal Layers are enabled. To disable emissive decals on specific meshes, you will have to use a Decal Layer instead of relying on the Receive Decals property.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace UnityEngine.Rendering.HighDefinition
{
class GlobalIlluminationUtils
internal static class GlobalIlluminationUtils
{
// Return true if the light must be added to the baking
public static bool LightDataGIExtract(Light light, ref LightDataGI lightDataGI)
Expand Down Expand Up @@ -32,7 +32,7 @@ public static bool LightDataGIExtract(Light light, ref LightDataGI lightDataGI)

float lightDimmer = 1;

if (lightMode == LightMode.Realtime && add.affectDiffuse)
if (lightMode == LightMode.Realtime || lightMode == LightMode.Mixed)
lightDimmer = add.lightDimmer;

lightDataGI.instanceID = light.GetInstanceID();
Expand Down

0 comments on commit e4947e3

Please sign in to comment.