Skip to content

Commit

Permalink
Assign lighting scenario name and scene name for easier debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent committed Mar 23, 2021
1 parent 8851200 commit 713c040
Show file tree
Hide file tree
Showing 8 changed files with 1,255 additions and 1,250 deletions.
Binary file modified Assets/Scenes/Lighting1/LightingData.asset
Binary file not shown.
Binary file modified Assets/Scenes/Lighting2/LightingData.asset
Binary file not shown.
Binary file modified Assets/Scenes/Lighting2/Lightmap-0_comp_light.exr
Binary file not shown.
Binary file modified Assets/Scenes/Lighting3/LightingData.asset
Binary file not shown.
Binary file modified Assets/Scenes/Lighting3/Lightmap-0_comp_dir.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Assets/Scenes/Lighting3/Lightmap-0_comp_light.exr
Binary file not shown.
2,498 changes: 1,249 additions & 1,249 deletions Assets/Scenes/StaticGeometry.unity

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,15 @@ public void StoreLightmapInfos(int index)

lightingScenariosCount = lightingScenariosData.Count;

if (lightingScenesNames == null || lightingScenesNames.Length< lightingScenariosCount)
if (lightingScenesNames == null || lightingScenesNames.Length < lightingScenariosCount)
{
lightingScenesNames = new string[lightingScenariosCount];
}
else
{
lightingScenariosData[index].sceneName = lightingScenesNames[index];
lightingScenariosData[index].name = lightingScenesNames[index];
}
}

static void GenerateLightmapInfo(GameObject root, List<RendererInfo> newRendererInfos, List<Texture2D> newLightmapsLight, List<Texture2D> newLightmapsDir, List<Texture2D> newLightmapsShadow, LightmapsMode newLightmapsMode)
Expand Down

0 comments on commit 713c040

Please sign in to comment.