Remy
7 年前
当前提交
dd1d4224
共有 40 个文件被更改,包括 375 次插入 和 175 次删除
-
1ScriptableRenderPipeline/Core/CoreRP/CoreUtils.cs
-
2ScriptableRenderPipeline/Core/CoreRP/Editor/Debugging/DebugMenuEditor.cs
-
2ScriptableRenderPipeline/Core/CoreRP/Editor/ShaderGenerator/ShaderGeneratorMenu.cs
-
14ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Color.hlsl
-
5ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Common.hlsl
-
48ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/CommonLighting.hlsl
-
22ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Debug.hlsl
-
21ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugDisplay.hlsl
-
4ScriptableRenderPipeline/HDRenderPipeline/HDRP/Decal/DecalProjectorComponent.cs
-
66ScriptableRenderPipeline/HDRenderPipeline/HDRP/Decal/DecalSystem.cs
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/Decal/DecalMenuItems.cs
-
5ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/HDAssetFactory.cs
-
13ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/HDRenderPipelineMenuItems.cs
-
20ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/Lighting/Reflection/PlanarReflectionProbeUI.Handles.cs
-
11ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/Material/Decal/DecalProjectorComponentEditor.cs
-
10ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/RenderLoopSettings/RenderPipelineSettingsUI.cs
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/RenderLoopSettings/SerializedRenderPipelineSettings.cs
-
6ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/UpgradeStandardShaderMaterials.cs
-
5ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipelineAsset.asset
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/DeferredDirectionalShadow.compute
-
1ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoop.cs
-
20ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoopDef.hlsl
-
4ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Decal/Decal.cs
-
5ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Decal/Decal.cs.hlsl
-
3ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Decal/Decal.hlsl
-
11ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Decal/DecalData.hlsl
-
41ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.hlsl
-
1ScriptableRenderPipeline/HDRenderPipeline/HDRP/RenderPipeline/RenderPipelineSettings.cs
-
14ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderPass/ShaderPassDBuffer.hlsl
-
10ScriptableRenderPipeline/LightweightPipeline/LWRP/Data/LightweightPipelineAsset.cs
-
4ScriptableRenderPipeline/LightweightPipeline/LWRP/Editor/LightweightMaterialUpgrader.cs
-
2TestbedPipelines/BasicRenderPipeline/BasicRenderPipeline.cs
-
3TestbedPipelines/Fptl/FptlLighting.cs
-
68TestbedPipelines/OnTileDeferredPipeline/OnTileDeferredRenderPipeline.cs
-
17ScriptableRenderPipeline/HDRenderPipeline/HDRP/Decal/GlobalDecalSettings.cs
-
11ScriptableRenderPipeline/HDRenderPipeline/HDRP/Decal/GlobalDecalSettings.cs.meta
-
32ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/RenderLoopSettings/GlobalDecalSettingsUI.cs
-
11ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/RenderLoopSettings/GlobalDecalSettingsUI.cs.meta
-
20ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/RenderLoopSettings/SerializedGlobalDecalSettings.cs
-
11ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/RenderLoopSettings/SerializedGlobalDecalSettings.cs.meta
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using System; |
|||
|
|||
namespace UnityEngine.Experimental.Rendering.HDPipeline |
|||
{ |
|||
// RenderRenderPipelineSettings represent settings that are immutable at runtime.
|
|||
// There is a dedicated RenderRenderPipelineSettings for each platform
|
|||
|
|||
[Serializable] |
|||
public class GlobalDecalSettings |
|||
{ |
|||
public int drawDistance = 1000; |
|||
public int atlasSize = 8192; |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 485a401e826e66d4fb7bc37f9562ad93 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine; |
|||
|
|||
namespace UnityEditor.Experimental.Rendering |
|||
{ |
|||
using _ = CoreEditorUtils; |
|||
using CED = CoreEditorDrawer<GlobalDecalSettingsUI, SerializedGlobalDecalSettings>; |
|||
|
|||
class GlobalDecalSettingsUI : BaseUI<SerializedGlobalDecalSettings> |
|||
{ |
|||
static GlobalDecalSettingsUI() |
|||
{ |
|||
Inspector = CED.Group(SectionDecalSettings); |
|||
} |
|||
public static readonly CED.IDrawer Inspector; |
|||
|
|||
public static readonly CED.IDrawer SectionDecalSettings = CED.Action(Drawer_SectionDecalSettings); |
|||
|
|||
public GlobalDecalSettingsUI() |
|||
: base(0) |
|||
{ |
|||
|
|||
} |
|||
static void Drawer_SectionDecalSettings(GlobalDecalSettingsUI s, SerializedGlobalDecalSettings d, Editor o) |
|||
{ |
|||
EditorGUILayout.LabelField(_.GetContent("Decals"), EditorStyles.boldLabel); |
|||
++EditorGUI.indentLevel; |
|||
EditorGUILayout.PropertyField(d.drawDistance, _.GetContent("Draw Distance")); |
|||
EditorGUILayout.PropertyField(d.atlasSize, _.GetContent("Atlas Size")); |
|||
--EditorGUI.indentLevel; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: cd7279651d591ea499d14ea8d77384ef |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEngine.Experimental.Rendering.HDPipeline; |
|||
|
|||
namespace UnityEditor.Experimental.Rendering |
|||
{ |
|||
class SerializedGlobalDecalSettings |
|||
{ |
|||
public SerializedProperty root; |
|||
|
|||
public SerializedProperty drawDistance; |
|||
public SerializedProperty atlasSize; |
|||
|
|||
public SerializedGlobalDecalSettings(SerializedProperty root) |
|||
{ |
|||
this.root = root; |
|||
|
|||
drawDistance = root.Find((GlobalDecalSettings s) => s.drawDistance); |
|||
atlasSize = root.Find((GlobalDecalSettings s) => s.atlasSize); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: dadcbfde34013be40a7e1162307cc677 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue