浏览代码
Moved MipMap Debug rendering to its own mode.
Moved MipMap Debug rendering to its own mode.
Improved the visualisation of mip ratio to handle mip reduction. Improved the mip level count visualisation now mip streaming shown more clearly in other mip debug mode Moved common shader functions to HLSL file/feature-ReflectionProbeFit
lyndon homewood
7 年前
当前提交
595016ea
共有 18 个文件被更改,包括 345 次插入 和 192 次删除
-
17ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Common.hlsl
-
180ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Debug.hlsl
-
54ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugDisplay.cs
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugDisplay.hlsl
-
31ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/MaterialDebug.cs
-
9ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/MaterialDebug.cs.hlsl
-
9ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs
-
1ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDStringConstants.cs
-
5ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.hlsl
-
14ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/LitData.hlsl
-
7ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Unlit/UnlitData.hlsl
-
126ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderPass/FragInputs.hlsl
-
9ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderPass/ShaderPassForward.hlsl
-
3ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderPass/ShaderPassForwardUnlit.hlsl
-
32ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/MipMapDebug.cs
-
18ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/MipMapDebug.cs.hlsl
-
9ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/MipMapDebug.cs.hlsl.meta
-
11ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/MipMapDebug.cs.meta
|
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using System; |
|||
|
|||
namespace UnityEngine.Experimental.Rendering.HDPipeline |
|||
{ |
|||
[GenerateHLSL] |
|||
public enum DebugMipMapMode |
|||
{ |
|||
None, |
|||
MipRatio, |
|||
MipCount, |
|||
MipCountReduction, |
|||
StreamingMipBudget, |
|||
StreamingMip |
|||
} |
|||
|
|||
[Serializable] |
|||
public class MipMapDebugSettings |
|||
{ |
|||
public DebugMipMapMode debugMipMapMode = DebugMipMapMode.None; |
|||
|
|||
public bool IsDebugDisplayEnabled() |
|||
{ |
|||
return debugMipMapMode != DebugMipMapMode.None; |
|||
} |
|||
|
|||
public void OnValidate() |
|||
{ |
|||
} |
|||
} |
|||
} |
|
|||
// |
|||
// This file was automatically generated. Please don't edit by hand. |
|||
// |
|||
|
|||
#ifndef MIPMAPDEBUG_CS_HLSL |
|||
#define MIPMAPDEBUG_CS_HLSL |
|||
// |
|||
// UnityEngine.Experimental.Rendering.HDPipeline.DebugMipMapMode: static fields |
|||
// |
|||
#define DEBUGMIPMAPMODE_NONE (0) |
|||
#define DEBUGMIPMAPMODE_MIP_RATIO (1) |
|||
#define DEBUGMIPMAPMODE_MIP_COUNT (2) |
|||
#define DEBUGMIPMAPMODE_MIP_COUNT_REDUCTION (3) |
|||
#define DEBUGMIPMAPMODE_STREAMING_MIP_BUDGET (4) |
|||
#define DEBUGMIPMAPMODE_STREAMING_MIP (5) |
|||
|
|||
|
|||
#endif |
|
|||
fileFormatVersion: 2 |
|||
guid: b70bba64289151b40845a49cf9f32d18 |
|||
ShaderImporter: |
|||
externalObjects: {} |
|||
defaultTextures: [] |
|||
nonModifiableTextures: [] |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 2f696bd7f8848384c985304f7e4f8fe8 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue