John Parsaie
7 年前
当前提交
73467192
共有 33 个文件被更改,包括 248 次插入 和 278 次删除
-
6ScriptableRenderPipeline/Core/CoreRP/Editor/Debugging/DebugState.cs
-
36ScriptableRenderPipeline/Core/CoreRP/Editor/Debugging/DebugUIDrawer.Builtins.cs
-
1ScriptableRenderPipeline/Core/CoreRP/Editor/Debugging/DebugUIDrawer.cs
-
35ScriptableRenderPipeline/Core/CoreRP/Editor/Debugging/DebugWindow.cs
-
4ScriptableRenderPipeline/Core/package.json
-
1ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/Lighting/HDLightEditor.cs
-
12ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/Material/Unlit/BaseUnlitUI.cs
-
14ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/RenderLoopSettings/FrameSettingsUI.cs
-
9ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/RenderLoopSettings/LightLoopSettingsUI.cs
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/RenderLoopSettings/SerializedFrameSettings.cs
-
47ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs
-
1ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipelineAsset.asset
-
4ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Light/HDAdditionalLightData.cs
-
3ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoopSettings.cs
-
20ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/ShadowContext.hlsl
-
47ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/LayeredLit/LayeredLit.shader
-
50ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/LayeredLit/LayeredLitTessellation.shader
-
6ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.hlsl
-
50ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.shader
-
53ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/LitTessellation.shader
-
4ScriptableRenderPipeline/HDRenderPipeline/HDRP/RenderPipeline/FrameSettings.cs
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderPass/ShaderPassForward.hlsl
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderPass/ShaderPassGBuffer.hlsl
-
5ScriptableRenderPipeline/HDRenderPipeline/HDRP/Sky/SkyManager.cs
-
23ScriptableRenderPipeline/HDRenderPipeline/HDRP/Sky/SkyRenderingContext.cs
-
6ScriptableRenderPipeline/HDRenderPipeline/package.json
-
8ScriptableRenderPipeline/LightweightPipeline/LWRP/LightweightPipeline.cs
-
8ScriptableRenderPipeline/LightweightPipeline/package.json
-
2ScriptableRenderPipeline/LightweightPipeline/sub-package.json
-
4ScriptableRenderPipeline/master-package.json
-
2package.json
-
48ScriptableRenderPipeline/LightweightPipeline/LWRP/SceneViewDrawMode.cs
-
11ScriptableRenderPipeline/LightweightPipeline/LWRP/SceneViewDrawMode.cs.meta
|
|||
{ |
|||
"name": "com.unity.render-pipelines.core", |
|||
"description": "Core library for Unity render pipelines.", |
|||
"version": "1.0.0-beta", |
|||
"version": "1.1.1-preview", |
|||
"com.unity.postprocessing": "2.0.0-beta" |
|||
"com.unity.postprocessing": "2.0.2-preview" |
|||
} |
|||
} |
|
|||
{ |
|||
"name": "com.unity.render-pipelines.high-definition", |
|||
"description": "HD Render Pipeline for Unity.", |
|||
"version": "1.0.0-beta", |
|||
"version": "1.1.1-preview", |
|||
"com.unity.postprocessing": "2.0.0-beta", |
|||
"com.unity.render-pipelines.core": "1.0.0-beta" |
|||
"com.unity.postprocessing": "2.0.2-preview", |
|||
"com.unity.render-pipelines.core": "1.1.1-preview" |
|||
} |
|||
} |
|
|||
#if UNITY_EDITOR
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
|
|||
namespace UnityEditor.Experimental.Rendering.LightweightPipeline |
|||
{ |
|||
internal static class SceneViewDrawMode |
|||
{ |
|||
static bool RejectDrawMode(SceneView.CameraMode cameraMode) |
|||
{ |
|||
if (cameraMode.drawMode == DrawCameraMode.TexturedWire || |
|||
cameraMode.drawMode == DrawCameraMode.ShadowCascades || |
|||
cameraMode.drawMode == DrawCameraMode.RenderPaths || |
|||
cameraMode.drawMode == DrawCameraMode.AlphaChannel || |
|||
cameraMode.drawMode == DrawCameraMode.Overdraw || |
|||
cameraMode.drawMode == DrawCameraMode.Mipmaps || |
|||
cameraMode.drawMode == DrawCameraMode.SpriteMask || |
|||
cameraMode.drawMode == DrawCameraMode.DeferredDiffuse || |
|||
cameraMode.drawMode == DrawCameraMode.DeferredSpecular || |
|||
cameraMode.drawMode == DrawCameraMode.DeferredSmoothness || |
|||
cameraMode.drawMode == DrawCameraMode.DeferredNormal || |
|||
cameraMode.drawMode == DrawCameraMode.ValidateAlbedo || |
|||
cameraMode.drawMode == DrawCameraMode.ValidateMetalSpecular || |
|||
cameraMode.drawMode == DrawCameraMode.ShadowMasks || |
|||
cameraMode.drawMode == DrawCameraMode.LightOverlap |
|||
) |
|||
return false; |
|||
|
|||
return true; |
|||
} |
|||
|
|||
public static void SetupDrawMode() |
|||
{ |
|||
ArrayList sceneViewArray = SceneView.sceneViews; |
|||
foreach (SceneView sceneView in sceneViewArray) |
|||
sceneView.onValidateCameraMode += RejectDrawMode; |
|||
} |
|||
|
|||
public static void ResetDrawMode() |
|||
{ |
|||
ArrayList sceneViewArray = SceneView.sceneViews; |
|||
foreach (SceneView sceneView in sceneViewArray) |
|||
sceneView.onValidateCameraMode -= RejectDrawMode; |
|||
} |
|||
} |
|||
} |
|||
#endif
|
|
|||
fileFormatVersion: 2 |
|||
guid: d7255bed85944a04fa68dd4d1d28022a |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue