You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// All probes need to be baked only once for the whole batch and not once per cell
2139
2146
// The reason is that the baker is not deterministic so the same probe position baked in two different cells may have different values causing seams artefacts.
using(newProfilingScope(cmd,newProfilingSampler($"Subdivide Bricks at level {Mathf.Log(brickCount,3)}")))
638
639
{
639
640
// We convert the world space volume position (of a corner) in bricks.
640
641
// This is necessary to have correct brick position (the position calculated in the compute shader needs to be in number of bricks from the reference volume (origin)).
Copy file name to clipboardExpand all lines: Packages/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbeSubdivisionContext.cs
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -159,24 +159,23 @@ public void Initialize(ProbeVolumeBakingSet bakingSet, ProbeVolumeProfileInfo pr
159
159
foreach(varpvinprobeVolumes)
160
160
{
161
161
// This method generates many cells outside of the probe volumes but it's ok because next step will do obb collision tests between each cell and each probe volumes so we will eliminate them.
Copy file name to clipboardExpand all lines: Packages/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbeVolumeBakingSetEditor.cs
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ internal class ProbeVolumeBakingSetEditor : Editor
38
38
SerializedPropertym_MinRendererVolumeSize;
39
39
SerializedPropertym_RenderersLayerMask;
40
40
SerializedPropertym_FreezePlacement;
41
+
SerializedPropertym_ProbeOffset;
41
42
SerializedPropertym_ProbeVolumeBakingSettings;
42
43
SerializedPropertym_LightingScenarios;
43
44
SerializedPropertym_SkyOcclusion;
@@ -63,6 +64,7 @@ static class Styles
63
64
64
65
// Probe Placement section
65
66
publicstaticreadonlystringmsgProbeFreeze="Some scene(s) in this Baking Set are not currently loaded in the Hierarchy. Set Probe Positions to Don't Recalculate to not break compatibility with already baked scenarios.";
67
+
publicstaticreadonlyGUIContentprobeOffset=newGUIContent("Probe Offset","Offset on world origin used during baking. Can be used to have cells on positions that are not multiples of the probe spacing.");
66
68
publicstaticreadonlyGUIContentmaxDistanceBetweenProbes=newGUIContent("Max Probe Spacing","Maximum distance between probes, in meters. Determines the number of Bricks in a streamable unit.");
67
69
publicstaticreadonlyGUIContentminDistanceBetweenProbes=newGUIContent("Min Probe Spacing","Minimum distance between probes, in meters.");
68
70
publicstaticreadonlystringsimplificationLevelsHighWarning=" Using this many brick sizes will result in high memory usage and can cause instabilities.";
0 commit comments