-
Notifications
You must be signed in to change notification settings - Fork 840
[10.x.x] Pure URP XRSDK #22
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
125 commits
Select commit
Hold shift + click to select a range
39946af
* PureXRSDK V2: Added basic XR System and XR System Assets.
thomas-zeng 27ee0dc
Merge branch 'master' of https://github.com/Unity-Technologies/Script…
thomas-zeng 491586d
* Set isStereoEnabled after xrPass is configured.
thomas-zeng 330590c
* Added target dimension support to render pass.
thomas-zeng c4b5830
* Add shader macro to blit.shader to support procedure draw blit.
thomas-zeng 032e79e
* Applied shader changes to postFX v3
thomas-zeng 5bbda81
Merge branch 'master' of https://github.com/Unity-Technologies/Script…
thomas-zeng 52eb3b2
Fixed typo.
thomas-zeng f19a8bd
* Added support to mirror view to target texture.
thomas-zeng c1619ac
* Small fixes for multipass shadow and hdr.
thomas-zeng e1bac74
* Fixed postFX XR sRGB logic. m_EnableSRGBConversionIfNeeded logic is…
thomas-zeng 1a1cb58
add XR automated tests
fabien-unity bab2984
fix DepthOnlyPass with XR single-pass
fabien-unity b6127b5
remove public from XRSystem, fix load/store for texarray, remove xrPa…
fabien-unity 65105ef
fix null access
fabien-unity a069ad1
* Fixed sRGB logic.
thomas-zeng 85c1872
Merge branch 'urp/xr/pure-xrsdk' of https://github.com/Unity-Technolo…
thomas-zeng 1545dd3
Merge branch 'master' of https://github.com/Unity-Technologies/Script…
thomas-zeng d76c138
remove GC allocations from XR code
fabien-unity e60aeed
fix vignette in XR single-pass
fabien-unity bf9c528
rename xrPass in CameraData to xr for consistency with HDRP
fabien-unity 991c105
remove legacy VR code from XRSystem and XRPass
fabien-unity 86bf968
fix autotests logic with render texture
fabien-unity 66f6437
fix first frame settings with XR SDK
fabien-unity 43c8fe6
* Added todo comment for asset pipeline controlled stereo mode.
thomas-zeng 6ed87ad
* Fixed 069_2D_Forward_Shader_Compatibility_Forward
thomas-zeng bf8c066
* Fixed custom particle data shader not compatible with XR.
thomas-zeng 3c57721
* Fixed formatting.
thomas-zeng 64955e4
move XRSystemData to internal instead of public
fabien-unity c655c2d
remove unused GlobalXRSettings
fabien-unity 54cf1f2
add missing meta folders
fabien-unity 1cbccfd
tag deprecated code and remove redundant isStereoEnabled
fabien-unity a5178d6
Merge branch 'urp/xr/pure-xrsdk' of https://github.com/Unity-Technolo…
thomas-zeng 89ef74b
restore public field isStereoEnabled and tag it as obsolete
fabien-unity bf5e3bf
remove usage of UNITY_SINGLE_PASS_STEREO
fabien-unity c63bfb1
fix multipass and remove renderPass.eyeIndex
fabien-unity 783ff92
removed extra [Obsolete] failing build
fabien-unity 351f065
* Added XR support to copy color pass.
thomas-zeng 0695b5c
Merge branch 'urp/xr/pure-xrsdk' of https://github.com/Unity-Technolo…
thomas-zeng ff9c6a8
* Fixed 046_Camera_OpaqueTexture not working in XR.
thomas-zeng 2f7aef9
fix blit shader with standalone build
fabien-unity 4bf4a07
fix mirror view in standalone
fabien-unity 2bcb186
Merge branch 'urp/xr/pure-xrsdk' of https://github.com/Unity-Technolo…
fabien-unity 846a593
fix xr system data
fabien-unity 7a42909
fix shader from test 046 for XR
fabien-unity 99eb58e
fix material from test 127 for XR
fabien-unity 71eae01
* Fixed case in forward renderer where extra final blit is used.
thomas-zeng 0f01139
fix multiview, remove extra dimension parameters, move xr autotest bl…
fabien-unity a36ed0a
remove BLIT_SINGLE_SLICE from blit.shader
fabien-unity 5647b74
use DeclareOpaqueTexture.hlsl
fabien-unity 97c01a3
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
thomas-zeng 67d4d0d
Merge branch 'urp/xr/fix-unit-tests' of https://github.com/Unity-Tech…
thomas-zeng c314433
* Added Occlusion Mesh support to pure URP XRSDK.
thomas-zeng 7feff00
remove dead code
fabien-unity 8717083
fix transparents and skybox with multipass
fabien-unity 3466274
remove redundant obsolete keyword
fabien-unity 4ddce3b
add support to debug XR tests directly in editor
fabien-unity 2599dbc
* Fixed XR occlusion pass not working in SPI mode.
thomas-zeng ef90a38
* ConfigureTarget in forward renderer need to match occlusion pass's …
thomas-zeng c4dfe18
move XRPass loop one level up to make it compatible with camera stacking
fabien-unity beee0bb
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
thomas-zeng 22281e4
* Fixed y-flip when opaque texture is not being used.
thomas-zeng c74efbf
disable incompatible XR tests
fabien-unity 0e99ecb
* Removed mount/unmount functions.
thomas-zeng d4c8ad9
cleanup postfx changes
fabien-unity 04b69b0
Merge branch 'master' into urp/xr/pure-xrsdk
fabien-unity df1dfa6
Merge branch 'urp/xr/pure-xrsdk-disable-tests' into urp/xr/pure-xrsdk
fabien-unity 2a2dc8b
rename xrCompatible
fabien-unity 8bb5518
Merge branch 'urp/xr/pure-xrsdk' of https://github.com/Unity-Technolo…
thomas-zeng 0644fdd
fix compile issue with motion blur shader
fabien-unity 2105f09
Merge branch 'urp/xr/pure-xrsdk' of https://github.com/Unity-Technolo…
fabien-unity 9487313
fix tests in non-VR
fabien-unity 8bc654b
wrap XR code within #ifdef and fix sRGB issues
fabien-unity 52da112
fix camera stack in XR
fabien-unity a70c184
refactor code with GetCameraTarget()
fabien-unity 4f304c5
fix subsystem compile error
fabien-unity 295c77f
* Fixed sRGB rendering case: render directly to non-sRGB eye texture …
thomas-zeng 437999b
revert previous change until trunk is fixed
fabien-unity c09e9db
* Fixed oculus quest msaa auto resolve
thomas-zeng fd32b19
Merge branch 'urp/xr/pure-xrsdk' of https://github.com/Unity-Technolo…
thomas-zeng 1aa2685
* Renamed _BlitTex to _InputTex for PostProcessPass.
thomas-zeng 3429bab
* Fixed final blit shader after postFX renaming.
thomas-zeng de5a88f
fix post fx
fabien-unity 29d84c0
fix mirror view shader warnings
fabien-unity fc0657b
fix black screen when RP is not set
fabien-unity 2f3e0ec
* Fixed MSAA.
thomas-zeng cbd86b4
* Fixed depth only pass for SPI/MV
thomas-zeng 3e055ac
check for valid occlusion mesh before queueing the pass
fabien-unity ec4e6a1
Merge branch 'master' into urp/xr/pure-xrsdk
fabien-unity 84890a0
workaround for invalid blit params on the Quest with Vulkan
fabien-unity 3862cc0
Merge branch 'master' into urp/xr/pure-xrsdk
fabien-unity 056ef63
use Assume() to skip incompatible XR tests
fabien-unity 712d2dc
use Assert.Ignore instead of Assume.That to not fail test but still s…
fabien-unity 1f410e2
add comment
fabien-unity 75c021e
restore code (will be removed in another PR to limit the scope of thi…
fabien-unity e617656
remove one comment (task tracked externally)
fabien-unity 78a64eb
* Added workaround code to fix UWPPlayer debug build issue.
thomas-zeng f6243fd
* Fixed extra space.
thomas-zeng 9b0b990
disable stereo tests until they are compatible with XR SDK
fabien-unity df946e0
disable vsync on the main display when rendering to a XR device
fabien-unity a9976f9
Merge branch 'master' into urp/xr/pure-xrsdk
fabien-unity c412d44
update comments
fabien-unity 8419c22
fix BoxDownsample for XR and refactor fullscreen effects shader code …
fabien-unity fba03c2
Merge branch 'master' into urp/xr/pure-xrsdk
fabien-unity 5fd1cab
* Reverted UWP debug build workaround as discussed with Mario and Jason
thomas-zeng 68479fa
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
thomas-zeng 63f213e
Merge branch 'master' into urp/xr/pure-xrsdk
fabien-unity 83dcc59
reenable stereo tests
fabien-unity d2f5a3e
disable new tests incompatible with XR testing solution
fabien-unity 3567fb1
Merge branch 'master' into urp/xr/pure-xrsdk
fabien-unity a96ed42
disable XR stereo playmode tests, keep only standalone
fabien-unity f5a5e5d
* Added workaround for Quest vsync bug.
thomas-zeng 4ae6415
update obsolete messages
fabien-unity 4f141c4
* Address change feedback.
thomas-zeng 611c59e
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
thomas-zeng 207255b
Merge branch 'master' into urp/xr/pure-xrsdk
fabien-unity 6881f1f
* Address change feedback.
thomas-zeng 7bc1b63
Merge branch 'urp/xr/pure-xrsdk' of https://github.com/Unity-Technolo…
thomas-zeng 42a3fbe
Merge branch 'master' into urp/xr/pure-xrsdk
fabien-unity c704092
disable test 118 for XR (due to legacy skybox code)
fabien-unity 6210ae4
Merge branch 'master' into urp/xr/pure-xrsdk
fabien-unity 522ff83
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
thomas-zeng 9838887
* Fixed shim XR being used in deferred.
thomas-zeng 56ada9b
* Fixed shim XR usage in deferred renderer.
thomas-zeng f2a6810
* Disable 019 test for XR as discussed with Dennis.
thomas-zeng 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
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
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
17 changes: 17 additions & 0 deletions
17
com.unity.render-pipelines.universal/Runtime/Data/XRSystemData.asset
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!114 &11400000 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 0} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: 307a736764ebbce44b54d72f8467b6fd, type: 3} | ||
m_Name: XRSystemData | ||
m_EditorClassIdentifier: | ||
shaders: | ||
xrOcclusionMeshPS: {fileID: 4800000, guid: 4431b1f1f743fbf4eb310a967890cbea, type: 3} | ||
xrMirrorViewPS: {fileID: 4800000, guid: d5a307c014552314b9f560906d708772, type: 3} |
8 changes: 8 additions & 0 deletions
8
com.unity.render-pipelines.universal/Runtime/Data/XRSystemData.asset.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
com.unity.render-pipelines.universal/Runtime/Data/XRSystemData.cs
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#if UNITY_EDITOR | ||
using UnityEditor; | ||
using UnityEditor.ProjectWindowCallback; | ||
#endif | ||
using System; | ||
|
||
namespace UnityEngine.Rendering.Universal | ||
{ | ||
[Serializable] | ||
public class XRSystemData : ScriptableObject | ||
{ | ||
#if UNITY_EDITOR | ||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1812")] | ||
internal class CreateXRSystemDataAsset : EndNameEditAction | ||
{ | ||
public override void Action(int instanceId, string pathName, string resourceFile) | ||
{ | ||
var instance = CreateInstance<XRSystemData>(); | ||
AssetDatabase.CreateAsset(instance, pathName); | ||
ResourceReloader.ReloadAllNullIn(instance, UniversalRenderPipelineAsset.packagePath); | ||
Selection.activeObject = instance; | ||
} | ||
} | ||
|
||
[MenuItem("Assets/Create/Rendering/Universal Render Pipeline/XR System Data", priority = CoreUtils.assetCreateMenuPriority3)] | ||
static void CreateXRSystemData() | ||
{ | ||
ProjectWindowUtil.StartNameEditingIfProjectWindowExists(0, CreateInstance<CreateXRSystemDataAsset>(), "CustomXRSystemData.asset", null, null); | ||
} | ||
#endif | ||
|
||
[Serializable, ReloadGroup] | ||
public sealed class ShaderResources | ||
{ | ||
[Reload("Shaders/XR/XROcclusionMesh.shader")] | ||
public Shader xrOcclusionMeshPS; | ||
|
||
[Reload("Shaders/XR/XRMirrorView.shader")] | ||
public Shader xrMirrorViewPS; | ||
} | ||
|
||
public ShaderResources shaders; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
com.unity.render-pipelines.universal/Runtime/Data/XRSystemData.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 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.