-
Notifications
You must be signed in to change notification settings - Fork 855
Minimal enclosing sphere fix #4436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
19a8055
Debug culling render feature
eh-unity 615edb8
Very basic UI for toggling debug features.
eh-unity 159958d
Add support for shadow cascade debug and spotlights.
eh-unity b16ce6b
Merge branch 'master' into universal/debug-cull-features
eh-unity a7f9504
Added main camera culling debug viewer.
eh-unity ca3041c
Merge branch 'master' into universal/debug-cull-features
eh-unity f784053
Fix indexing bug when no direct lights.
eh-unity 61b7bbe
Merge branch 'master' into universal/debug-cull-features
eh-unity ba8be04
Refactor
eh-unity f1b1156
Merge branch 'master' into universal/debug-cull-features
eh-unity 8bbd148
Basic frustum debug support for point light shadows.
eh-unity 318f9f0
Merge branch 'master' of github.com:Unity-Technologies/Graphics into …
nigeljw-unity a50048a
Merge branch 'master' of github.com:Unity-Technologies/Graphics into …
nigeljw-unity e66520f
Merge branch 'master' of github.com:Unity-Technologies/Graphics into …
nigeljw-unity 2ec5e04
Added minimal enclosing sphere chicken bit and also iteration .
nigeljw-unity 839062b
Added user control for number of iterations
nigeljw-unity 69219b9
Merge branch 'master' of github.com:Unity-Technologies/Graphics into …
nigeljw-unity 0cbf27d
Merge branch 'master' into universal/debug-cull-features
eh-unity 35fc302
Merge branch 'master' of github.com:Unity-Technologies/Graphics into …
nigeljw-unity 330c828
Merge branch 'universal/debug-cull-features' of github.com:Unity-Tech…
nigeljw-unity 8706e52
Merge branch 'master' of github.com:Unity-Technologies/Graphics into …
nigeljw-unity 9659fbc
Merge branch 'universal/debug-cull-features' of github.com:Unity-Tech…
nigeljw-unity d0d3910
Merge branch 'universal/debug-cull-features' of github.com:Unity-Tech…
nigeljw-unity 96dd1f0
Merge branch 'master' of github.com:Unity-Technologies/Graphics into …
nigeljw-unity 13a67d3
Merge branch 'master' of github.com:Unity-Technologies/Graphics into …
nigeljw-unity 29b7339
Merge branch 'master' of github.com:Unity-Technologies/Graphics into …
nigeljw-unity a8ef4ee
Reverted changes to debug culling feature
nigeljw-unity 6386692
Remove debug files
nigeljw-unity 5472010
Removed debug cull files
nigeljw-unity 61da606
Removed code specific to debug
nigeljw-unity eb008f9
Merge branch 'master' of github.com:Unity-Technologies/Graphics into …
nigeljw-unity 62c34bb
removed more old code
nigeljw-unity 3619666
Removed old includes
nigeljw-unity 3939d95
Merge branch 'master' of github.com:Unity-Technologies/Graphics into …
nigeljw-unity 51979d6
Fixed merge conflight and renamed to conservative enclosing sphere
nigeljw-unity 3ac5008
Enable for new projects
nigeljw-unity e762373
Merge branch 'master' of github.com:Unity-Technologies/Graphics into …
nigeljw-unity 3ef8d83
Addressed UX design feedback
nigeljw-unity 1143462
Removed orphan UI element
nigeljw-unity 941171c
Removed orphan prop
nigeljw-unity 5201d3f
Updated tooltip from feedback from docs team and added changelog
nigeljw-unity fc17721
Merge branch 'master' of github.com:Unity-Technologies/Graphics into …
nigeljw-unity 9629cf5
Added the Conservative Enclosing Sphere description to URP Asset page.
oleks-k 653b014
Merge branch 'universal/tight_enclosing_sphere' of github.com:Unity-T…
oleks-k 3399711
Added a note about performance.
oleks-k 142ed2e
Merge branch 'master' into universal/tight_enclosing_sphere
nigeljw-unity File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -198,6 +198,8 @@ public partial class UniversalRenderPipelineAsset : RenderPipelineAsset, ISerial | |
[SerializeField] float m_ShadowDepthBias = 1.0f; | ||
[SerializeField] float m_ShadowNormalBias = 1.0f; | ||
[SerializeField] bool m_SoftShadowsSupported = false; | ||
[SerializeField] bool m_ConservativeEnclosingSphere = false; | ||
[SerializeField] int m_NumIterationsEnclosingSphere = 64; | ||
|
||
// Light Cookie Settings | ||
[SerializeField] LightCookieResolution m_AdditionalLightsCookieResolution = LightCookieResolution._2048; | ||
|
@@ -260,6 +262,9 @@ public static UniversalRenderPipelineAsset Create(ScriptableRendererData rendere | |
// Initialize default Renderer | ||
instance.m_EditorResourcesAsset = instance.editorResources; | ||
|
||
// Only enable for new URP assets by default | ||
instance.m_ConservativeEnclosingSphere = true; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
return instance; | ||
} | ||
|
||
|
@@ -913,6 +918,18 @@ public bool useAdaptivePerformance | |
set { m_UseAdaptivePerformance = value; } | ||
} | ||
|
||
public bool conservativeEnclosingSphere | ||
{ | ||
get { return m_ConservativeEnclosingSphere; } | ||
set { m_ConservativeEnclosingSphere = value; } | ||
} | ||
|
||
public int numItertionsEnclosingSphere | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A bit late to the party but there's a small spelling mistake here: numItertionsEnclosingSphere -> numIterationsEnclosingSphere |
||
{ | ||
get { return m_NumIterationsEnclosingSphere; } | ||
set { m_NumIterationsEnclosingSphere = value; } | ||
} | ||
|
||
public override Material defaultMaterial | ||
{ | ||
get { return GetMaterial(DefaultMaterialType.Standard); } | ||
|
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this determined. Are there some sort of error bounds or empirical testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some manual empirical testing, and this gets the accuracy down to the 0.001.