egomeh
6 年前
当前提交
e7c59a70
共有 217 个文件被更改,包括 2202 次插入 和 3453 次删除
-
2README.md
-
999TestProjects/HDRP_Tests/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/2203_PlanarProbes.png
-
999TestProjects/HDRP_Tests/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/2207_ReflectionProbeVFace.png
-
18TestProjects/HDRP_Tests/ProjectSettings/EditorBuildSettings.asset
-
15com.unity.render-pipelines.core/CoreRP/CoreResources/TexturePadding.cs
-
29com.unity.render-pipelines.core/CoreRP/Editor/CoreEditorUtils.cs
-
10com.unity.render-pipelines.core/CoreRP/ShaderLibrary/BSDF.hlsl
-
34com.unity.render-pipelines.core/CoreRP/ShaderLibrary/CommonLighting.hlsl
-
24com.unity.render-pipelines.core/CoreRP/ShaderLibrary/CommonMaterial.hlsl
-
10com.unity.render-pipelines.core/CoreRP/ShaderLibrary/ImageBasedLighting.hlsl
-
65com.unity.render-pipelines.core/CoreRP/Shadow/AdditionalShadowData.cs
-
2com.unity.render-pipelines.core/CoreRP/Textures/RTHandleSystem.cs
-
3com.unity.render-pipelines.core/CoreRP/Utilities/CoreUtils.cs
-
21com.unity.render-pipelines.high-definition/CHANGELOG.md
-
8com.unity.render-pipelines.high-definition/HDRP/Camera/HDCamera.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Debug/DebugDisplay.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Debug/LightingDebug.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Editor/AssetProcessors/NormalMapFilteringTexturePostprocessor.cs.meta
-
66com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/HDAdditionalLightDataEditor.cs
-
25com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/HDLightEditor.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/HDLightExplorerExtension.cs
-
3com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/EditorReflectionSystem.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/HDReflectionProbeEditor.Gizmos.cs
-
34com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/HDReflectionProbeEditor.Preview.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/HDReflectionProbeEditor.ProbeUtility.cs
-
133com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/HDReflectionProbeEditor.cs
-
532com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/HDReflectionProbeUI.Drawers.cs
-
102com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/HDReflectionProbeUI.cs
-
89com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/PlanarReflectionProbeEditor.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/PlanarReflectionProbeEditor.cs.meta
-
212com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/PlanarReflectionProbeUI.Handles.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/PlanarReflectionProbeUI.Handles.cs.meta
-
121com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/PlanarReflectionProbeUI.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/PlanarReflectionProbeUI.cs.meta
-
109com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/SerializedHDReflectionProbe.cs
-
81com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/SerializedPlanarReflectionProbe.cs
-
163com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/Volume/InfluenceVolumeUI.Drawers.cs
-
311com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/Volume/InfluenceVolumeUI.Handles.cs
-
20com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/Volume/InfluenceVolumeUI.cs
-
135com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/Volume/ProxyVolumeUI.cs
-
9com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/Volume/ReflectionProxyVolumeComponentUI.cs
-
29com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/Volume/SerializedInfluenceVolume.cs
-
6com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Volumetric/DensityVolumeTextureTool.cs
-
14com.unity.render-pipelines.high-definition/HDRP/Editor/Material/Lit/BaseLitUI.cs
-
4com.unity.render-pipelines.high-definition/HDRP/Editor/Material/Unlit/BaseUnlitUI.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Editor/RenderPipeline/HDAssetFactory.cs
-
1com.unity.render-pipelines.high-definition/HDRP/Editor/RenderPipeline/HDEditorUtils.cs
-
3com.unity.render-pipelines.high-definition/HDRP/Editor/ShaderGraph/SharedCode.template.hlsl
-
1com.unity.render-pipelines.high-definition/HDRP/Editor/Upgraders/UpgradeMenuItem.cs
-
154com.unity.render-pipelines.high-definition/HDRP/Lighting/Light/HDAdditionalLightData.cs
-
3com.unity.render-pipelines.high-definition/HDRP/Lighting/LightEvaluation.hlsl
-
332com.unity.render-pipelines.high-definition/HDRP/Lighting/LightLoop/LightLoop.cs
-
61com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDAdditionalReflectionData.cs
-
26com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDProbe.cs
-
19com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/PlanarReflectionProbe.cs
-
29com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/ProbeWrapper.cs
-
10com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/ReflectionSystem.cs
-
167com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/ReflectionSystemInternal.cs
-
14com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/ReflectionSystemParameters.cs
-
16com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/Volumes/InfluenceVolume.cs
-
8com.unity.render-pipelines.high-definition/HDRP/Lighting/Volumetrics/VolumetricLighting.cs
-
6com.unity.render-pipelines.high-definition/HDRP/Material/LayeredLit/LayeredLitData.hlsl
-
10com.unity.render-pipelines.high-definition/HDRP/Material/Lit/Lit.hlsl
-
20com.unity.render-pipelines.high-definition/HDRP/Material/Lit/LitData.hlsl
-
16com.unity.render-pipelines.high-definition/HDRP/Material/Lit/LitDataIndividualLayer.hlsl
-
2com.unity.render-pipelines.high-definition/HDRP/Material/Material.hlsl
-
40com.unity.render-pipelines.high-definition/HDRP/Material/MaterialEvaluation.hlsl
-
12com.unity.render-pipelines.high-definition/HDRP/Material/PreIntegratedFGD/PreIntegratedFGD.cs
-
10com.unity.render-pipelines.high-definition/HDRP/Material/PreIntegratedFGD/PreIntegratedFGD.hlsl
-
4com.unity.render-pipelines.high-definition/HDRP/Material/PreIntegratedFGD/preIntegratedFGD_CharlieFabricLambert.shader
-
45com.unity.render-pipelines.high-definition/HDRP/RenderPipeline/HDRenderPipeline.cs
-
4com.unity.render-pipelines.high-definition/HDRP/RenderPipeline/HDRenderPipelineAsset.cs
-
3com.unity.render-pipelines.high-definition/HDRP/RenderPipeline/HDStringConstants.cs
-
8com.unity.render-pipelines.high-definition/HDRP/RenderPipelineResources/HDRenderPipelineResources.asset
-
8com.unity.render-pipelines.high-definition/HDRP/RenderPipelineResources/RenderPipelineResources.cs
-
3com.unity.render-pipelines.high-definition/HDRP/ShaderPass/VaryingMesh.hlsl
-
1com.unity.render-pipelines.high-definition/HDRP/ShaderVariables.hlsl
-
10com.unity.render-pipelines.lightweight/CHANGELOG.md
-
20com.unity.render-pipelines.lightweight/LWRP/DefaultRendererSetup.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Editor/ShaderGUI/LightweightShaderGUI.cs
-
4com.unity.render-pipelines.lightweight/LWRP/IRendererSetup.cs
-
80com.unity.render-pipelines.lightweight/LWRP/LightweightPipeline.cs
-
4com.unity.render-pipelines.lightweight/LWRP/Passes/BeginXRRenderingPass.cs
-
4com.unity.render-pipelines.lightweight/LWRP/Passes/CopyColorPass.cs
-
4com.unity.render-pipelines.lightweight/LWRP/Passes/CopyDepthPass.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Passes/CreateLightweightRenderTexturesPass.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Passes/DepthOnlyPass.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Passes/DirectionalShadowsPass.cs
-
4com.unity.render-pipelines.lightweight/LWRP/Passes/DrawSkyboxPass.cs
-
4com.unity.render-pipelines.lightweight/LWRP/Passes/EndXRRenderingPass.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Passes/FinalBlitPass.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Passes/LightweightForwardPass.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Passes/LocalShadowsPass.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Passes/OpaquePostProcessPass.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Passes/RenderOpaqueForwardPass.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Passes/RenderTransparentForwardPass.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Passes/SceneViewDepthCopy.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Passes/ScreenSpaceShadowResolvePass.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Passes/ScriptableRenderPass.cs
-
2com.unity.render-pipelines.lightweight/LWRP/Passes/SetupForwardRenderingPass.cs
999
TestProjects/HDRP_Tests/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/2203_PlanarProbes.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
TestProjects/HDRP_Tests/Assets/ReferenceImages/Linear/WindowsEditor/Direct3D11/2207_ReflectionProbeVFace.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
using System; |
|||
using UnityEditor.AnimatedValues; |
|||
using UnityEngine.Events; |
|||
using UnityEngine.Experimental.Rendering.HDPipeline; |
|||
using UnityEngine.Rendering; |
|||
|
|||
partial class PlanarReflectionProbeUI : BaseUI<SerializedPlanarReflectionProbe> |
|||
using UnityEngine; |
|||
using UnityEngine.Experimental.Rendering.HDPipeline; |
|||
using UnityEngine.Rendering; |
|||
using CED = CoreEditorDrawer<HDProbeUI, SerializedHDProbe>; |
|||
|
|||
partial class PlanarReflectionProbeUI : HDProbeUI |
|||
const int k_AnimBoolFields = 6; |
|||
static readonly int k_ReflectionProbeModeModeCount = Enum.GetValues(typeof(ReflectionProbeMode)).Length; |
|||
static readonly int k_AnimBoolTotal = k_AnimBoolFields + k_ReflectionProbeModeModeCount; |
|||
static readonly GUIContent overrideFieldOfViewContent = CoreEditorUtils.GetContent("Override Field Of View"); |
|||
static readonly GUIContent fieldOfViewSolidAngleContent = CoreEditorUtils.GetContent("Field Of View"); |
|||
public InfluenceVolumeUI influenceVolume = new InfluenceVolumeUI(); |
|||
public FrameSettingsUI frameSettings = new FrameSettingsUI(); |
|||
public ReflectionProxyVolumeComponentUI reflectionProxyVolume = new ReflectionProxyVolumeComponentUI(); |
|||
public static CED.IDrawer Inspector; |
|||
|
|||
public static readonly CED.IDrawer SectionFoldoutCaptureSettings = CED.FoldoutGroup( |
|||
"Capture Settings", |
|||
(s, d, o) => s.isSectionExpandedCaptureSettings, |
|||
FoldoutOption.Indent, |
|||
CED.Action(Drawer_SectionCaptureSettings) |
|||
); |
|||
public AnimBool isSectionExpandedInfluenceSettings { get { return m_AnimBools[k_ReflectionProbeModeModeCount]; } } |
|||
public AnimBool isSectionExpandedCaptureSettings { get { return m_AnimBools[k_ReflectionProbeModeModeCount + 1]; } } |
|||
|
|||
public AnimBool isSectionExpandedCaptureMirrorSettings { get { return m_AnimBools[k_ReflectionProbeModeModeCount + 2]; } } |
|||
public AnimBool isSectionExpandedCaptureStaticSettings { get { return m_AnimBools[k_ReflectionProbeModeModeCount + 3]; } } |
|||
public AnimBool isSectionExpendedProxyVolume { get { return m_AnimBools[k_ReflectionProbeModeModeCount + 4]; } } |
|||
public AnimBool isSectionExpendedAdditionalSettings { get { return m_AnimBools[k_ReflectionProbeModeModeCount + 5]; } } |
|||
|
|||
public bool showCaptureHandles { get; set; } |
|||
|
|||
public PlanarReflectionProbeUI() |
|||
: base(k_AnimBoolTotal) |
|||
static PlanarReflectionProbeUI() |
|||
isSectionExpandedInfluenceSettings.value = true; |
|||
isSectionExpandedCaptureSettings.value = true; |
|||
isSectionExpendedProxyVolume.value = true; |
|||
isSectionExpendedAdditionalSettings.value = false; |
|||
Inspector = CED.Group( |
|||
CED.Action(Drawer_Toolbars), |
|||
CED.space, |
|||
ProxyVolumeSettings, |
|||
CED.Select( |
|||
(s, d, o) => s.influenceVolume, |
|||
(s, d, o) => d.influenceVolume, |
|||
InfluenceVolumeUI.SectionFoldoutShapePlanar |
|||
), |
|||
CED.Action(Drawer_DifferentShapeError), |
|||
SectionFoldoutCaptureSettings, |
|||
SectionFoldoutAdditionalSettings, |
|||
CED.Select( |
|||
(s, d, o) => s.frameSettings, |
|||
(s, d, o) => d.frameSettings, |
|||
FrameSettingsUI.Inspector |
|||
), |
|||
CED.space, |
|||
CED.Action(Drawer_SectionBakeButton) |
|||
); |
|||
public AnimBool IsSectionExpandedReflectionProbeMode(ReflectionProbeMode mode) |
|||
protected static void Drawer_SectionCaptureSettings(HDProbeUI s, SerializedHDProbe d, Editor o) |
|||
return m_AnimBools[(int)mode]; |
|||
SerializedPlanarReflectionProbe serialized = (SerializedPlanarReflectionProbe)d; |
|||
var hdrp = GraphicsSettings.renderPipelineAsset as HDRenderPipelineAsset; |
|||
GUI.enabled = false; |
|||
EditorGUILayout.LabelField( |
|||
CoreEditorUtils.GetContent("Probe Texture Size (Set By HDRP)"), |
|||
CoreEditorUtils.GetContent(hdrp.renderPipelineSettings.lightLoopSettings.planarReflectionTextureSize.ToString()), |
|||
EditorStyles.label); |
|||
EditorGUILayout.Toggle( |
|||
CoreEditorUtils.GetContent("Probe Compression (Set By HDRP)"), |
|||
hdrp.renderPipelineSettings.lightLoopSettings.planarReflectionCacheCompressed); |
|||
GUI.enabled = true; |
|||
|
|||
bool on = serialized.overrideFieldOfView.boolValue; |
|||
EditorGUI.BeginChangeCheck(); |
|||
on = EditorGUILayout.Toggle(overrideFieldOfViewContent, on); |
|||
if (on) |
|||
{ |
|||
serialized.fieldOfViewOverride.floatValue = EditorGUILayout.FloatField(fieldOfViewSolidAngleContent, serialized.fieldOfViewOverride.floatValue); |
|||
} |
|||
if (EditorGUI.EndChangeCheck()) |
|||
{ |
|||
serialized.overrideFieldOfView.boolValue = on; |
|||
serialized.Apply(); |
|||
} |
|||
|
|||
//GUI.enabled = false;
|
|||
//EditorGUILayout.LabelField(resolutionContent, CoreEditorUtils.GetContent(((int)hdrp.GetRenderPipelineSettings().lightLoopSettings.reflectionCubemapSize).ToString()));
|
|||
//EditorGUILayout.LabelField(shadowDistanceContent, EditorStyles.label);
|
|||
//EditorGUILayout.LabelField(cullingMaskContent, EditorStyles.label);
|
|||
//EditorGUILayout.LabelField(useOcclusionCullingContent, EditorStyles.label);
|
|||
//EditorGUILayout.LabelField(nearClipCullingContent, EditorStyles.label);
|
|||
//EditorGUILayout.LabelField(farClipCullingContent, EditorStyles.label);
|
|||
//GUI.enabled = true;
|
|||
public override void Reset(SerializedPlanarReflectionProbe data, UnityAction repaint) |
|||
internal PlanarReflectionProbeUI() |
|||
reflectionProxyVolume.Reset(data.reflectionProxyVolume, repaint); |
|||
frameSettings.Reset(data.frameSettings, repaint); |
|||
influenceVolume.Reset(data.influenceVolume, repaint); |
|||
base.Reset(data, repaint); |
|||
toolBars = new[] { ToolBar.InfluenceShape | ToolBar.Blend }; |
|||
for (var i = 0; i < k_ReflectionProbeModeModeCount; i++) |
|||
m_AnimBools[i].target = i == data.mode.intValue; |
|||
|
|||
isSectionExpandedCaptureMirrorSettings.target = data.isMirrored; |
|||
isSectionExpandedCaptureStaticSettings.target = !data.isMirrored; |
|||
|
|||
reflectionProxyVolume.Update(); |
|||
frameSettings.Update(); |
|||
influenceVolume.Update(); |
|||
SerializedPlanarReflectionProbe serialized = data as SerializedPlanarReflectionProbe; |
|||
isSectionExpandedCaptureMirrorSettings.target = serialized.isMirrored; |
|||
isSectionExpandedCaptureStaticSettings.target = !serialized.isMirrored; |
|||
base.Update(); |
|||
} |
|||
} |
部分文件因为文件数量过多而无法显示
撰写
预览
正在加载...
取消
保存
Reference in new issue