您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
60 行
1.3 KiB
60 行
1.3 KiB
//
|
|
// This file was automatically generated. Please don't edit by hand.
|
|
//
|
|
|
|
#ifndef UNLIT_CS_HLSL
|
|
#define UNLIT_CS_HLSL
|
|
//
|
|
// UnityEngine.Experimental.Rendering.HDPipeline.Unlit+SurfaceData: static fields
|
|
//
|
|
#define DEBUGVIEW_UNLIT_SURFACEDATA_COLOR (300)
|
|
|
|
//
|
|
// UnityEngine.Experimental.Rendering.HDPipeline.Unlit+BSDFData: static fields
|
|
//
|
|
#define DEBUGVIEW_UNLIT_BSDFDATA_COLOR (350)
|
|
|
|
// Generated from UnityEngine.Experimental.Rendering.HDPipeline.Unlit+SurfaceData
|
|
// PackingRules = Exact
|
|
struct SurfaceData
|
|
{
|
|
float3 color;
|
|
};
|
|
|
|
// Generated from UnityEngine.Experimental.Rendering.HDPipeline.Unlit+BSDFData
|
|
// PackingRules = Exact
|
|
struct BSDFData
|
|
{
|
|
float3 color;
|
|
};
|
|
|
|
//
|
|
// Debug functions
|
|
//
|
|
void GetGeneratedSurfaceDataDebug(uint paramId, SurfaceData surfacedata, inout float3 result, inout bool needLinearToSRGB)
|
|
{
|
|
switch (paramId)
|
|
{
|
|
case DEBUGVIEW_UNLIT_SURFACEDATA_COLOR:
|
|
result = surfacedata.color;
|
|
needLinearToSRGB = true;
|
|
break;
|
|
}
|
|
}
|
|
|
|
//
|
|
// Debug functions
|
|
//
|
|
void GetGeneratedBSDFDataDebug(uint paramId, BSDFData bsdfdata, inout float3 result, inout bool needLinearToSRGB)
|
|
{
|
|
switch (paramId)
|
|
{
|
|
case DEBUGVIEW_UNLIT_BSDFDATA_COLOR:
|
|
result = bsdfdata.color;
|
|
needLinearToSRGB = true;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
#endif
|