Paul Melamed
7 年前
当前提交
afca789b
共有 17 个文件被更改,包括 178 次插入 和 35 次删除
-
3ScriptableRenderPipeline/HDRenderPipeline/HDRP/Decal/DecalProjectorComponent.cs
-
53ScriptableRenderPipeline/HDRenderPipeline/HDRP/Decal/DecalSystem.cs
-
10ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/RenderLoopSettings/RenderPipelineSettingsUI.cs
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/RenderLoopSettings/SerializedRenderPipelineSettings.cs
-
5ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipelineAsset.asset
-
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
-
1ScriptableRenderPipeline/HDRenderPipeline/HDRP/RenderPipeline/RenderPipelineSettings.cs
-
14ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderPass/ShaderPassDBuffer.hlsl
-
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