浏览代码
Non-working partial implementation. Needs merging the individual passes into one uber pass on HDRP I believe
/multipleCameras
Non-working partial implementation. Needs merging the individual passes into one uber pass on HDRP I believe
/multipleCameras
Jon Hogins
4 年前
当前提交
b178cad2
共有 16 个文件被更改,包括 115 次插入 和 204 次删除
-
13com.unity.perception/Runtime/GroundTruth/GroundTruthCrossPipelinePass.cs
-
54com.unity.perception/Runtime/GroundTruth/GroundTruthPass.cs
-
8com.unity.perception/Runtime/GroundTruth/InstanceSegmentationCrossPipelinePass.cs
-
16com.unity.perception/Runtime/GroundTruth/InstanceSegmentationPass.cs
-
6com.unity.perception/Runtime/GroundTruth/Labelers/InstanceSegmentationLabeler.cs
-
24com.unity.perception/Runtime/GroundTruth/Labelers/SemanticSegmentationLabeler.cs
-
57com.unity.perception/Runtime/GroundTruth/LensDistortionCrossPipelinePass.cs
-
7com.unity.perception/Runtime/GroundTruth/LensDistortionPass.cs
-
49com.unity.perception/Runtime/GroundTruth/PerceptionCamera_InstanceSegmentation.cs
-
2com.unity.perception/Runtime/GroundTruth/SemanticSegmentationCrossPipelinePass.cs
-
18com.unity.perception/Runtime/GroundTruth/SemanticSegmentationPass.cs
-
2com.unity.perception/Tests/Editor/PerceptionCameraEditorTests.cs
-
20com.unity.perception/Editor/GroundTruth/InstanceSegmentationPassEditor.cs
-
11com.unity.perception/Editor/GroundTruth/InstanceSegmentationPassEditor.cs.meta
-
11com.unity.perception/Editor/GroundTruth/SemanticSegmentationPassEditor.cs.meta
-
21com.unity.perception/Editor/GroundTruth/SemanticSegmentationPassEditor.cs
|
|||
#if HDRP_PRESENT
|
|||
|
|||
using UnityEditor.Rendering.HighDefinition; |
|||
using UnityEngine.Perception.GroundTruth; |
|||
|
|||
namespace UnityEditor.Perception.GroundTruth |
|||
{ |
|||
[CustomPassDrawer(typeof(InstanceSegmentationPass))] |
|||
public class InstanceSegmentationPassEditor : BaseCustomPassDrawer |
|||
{ |
|||
protected override void Initialize(SerializedProperty customPass) |
|||
{ |
|||
var targetCameraProperty = customPass.FindPropertyRelative(nameof(GroundTruthPass.targetCamera)); |
|||
AddProperty(targetCameraProperty); |
|||
AddProperty(customPass.FindPropertyRelative(nameof(InstanceSegmentationPass.targetTexture))); |
|||
base.Initialize(customPass); |
|||
} |
|||
} |
|||
} |
|||
#endif
|
|
|||
fileFormatVersion: 2 |
|||
guid: b21f1f12690d8ad44a83df43632ab4bb |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: b40b70efe1daed14ebb469162c8f799f |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
#if HDRP_PRESENT
|
|||
|
|||
using System; |
|||
using UnityEditor.Rendering.HighDefinition; |
|||
using UnityEngine.Perception.GroundTruth; |
|||
|
|||
namespace UnityEditor.Perception.GroundTruth |
|||
{ |
|||
[CustomPassDrawer(typeof(SemanticSegmentationPass))] |
|||
class SemanticSegmentationPassEditor : BaseCustomPassDrawer |
|||
{ |
|||
protected override void Initialize(SerializedProperty customPass) |
|||
{ |
|||
AddProperty(customPass.FindPropertyRelative(nameof(SemanticSegmentationPass.targetCamera))); |
|||
AddProperty(customPass.FindPropertyRelative(nameof(SemanticSegmentationPass.targetTexture))); |
|||
AddProperty(customPass.FindPropertyRelative(nameof(SemanticSegmentationPass.semanticSegmentationLabelConfig))); |
|||
base.Initialize(customPass); |
|||
} |
|||
} |
|||
} |
|||
#endif
|
撰写
预览
正在加载...
取消
保存
Reference in new issue