-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Rendering/sky box v2 sun moon and stars (#207)
* Calibration of SkyBox sun coord, addition of BSC5 stars * Compute vs Pixel shader star rendering. * Create an utility to hot reload compute shaders * TimeOfDay - Skybox * Arrange SkyBox according to the architecture * Move to the separate plugin * Move logic to the system * Jobify math ops --------- Co-authored-by: Geoff Birch <[email protected]>
- Loading branch information
1 parent
4ba1d69
commit 15075d8
Showing
90 changed files
with
3,258 additions
and
1,230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...rer/Assets/DCL/PerformanceAndDiagnostics/DebugUtilities/Declarations/DebugIntSliderDef.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using DCL.DebugUtilities.UIBindings; | ||
|
||
namespace DCL.DebugUtilities | ||
{ | ||
public class DebugIntSliderDef : DebugIntFieldDef | ||
{ | ||
public readonly int Min; | ||
public readonly int Max; | ||
|
||
public DebugIntSliderDef(ElementBinding<int> binding, int min, int max) : base(binding) | ||
{ | ||
Min = min; | ||
Max = max; | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...ssets/DCL/PerformanceAndDiagnostics/DebugUtilities/Declarations/DebugIntSliderDef.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...orer/Assets/DCL/PerformanceAndDiagnostics/DebugUtilities/Views/Assets/DebugIntSlider.uxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False"> | ||
<DCL.DebugUtilities.Views.DebugIntSliderElement style="align-self: stretch;"> | ||
<ui:SliderInt picking-mode="Ignore" value="38" high-value="100" inverted="false" show-input-field="true" /> | ||
</DCL.DebugUtilities.Views.DebugIntSliderElement> | ||
</ui:UXML> |
10 changes: 10 additions & 0 deletions
10
...Assets/DCL/PerformanceAndDiagnostics/DebugUtilities/Views/Assets/DebugIntSlider.uxml.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
Explorer/Assets/DCL/PerformanceAndDiagnostics/DebugUtilities/Views/DebugIntSliderElement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using UnityEngine.UIElements; | ||
|
||
namespace DCL.DebugUtilities.Views | ||
{ | ||
public class DebugIntSliderElement : DebugElementBase<DebugIntSliderElement, DebugIntSliderDef> | ||
{ | ||
public new class UxmlFactory : UxmlFactory<DebugIntSliderElement, UxmlTraits> { } | ||
|
||
protected override void ConnectBindings() | ||
{ | ||
SliderInt sliderInt = this.Q<SliderInt>(); | ||
|
||
sliderInt.lowValue = definition.Min; | ||
sliderInt.highValue = definition.Max; | ||
|
||
definition.Binding.Connect(sliderInt); | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...r/Assets/DCL/PerformanceAndDiagnostics/DebugUtilities/Views/DebugIntSliderElement.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.