您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
97 行
2.4 KiB
97 行
2.4 KiB
//
|
|
// This file was automatically generated. Please don't edit by hand.
|
|
//
|
|
|
|
#ifndef DECAL_CS_HLSL
|
|
#define DECAL_CS_HLSL
|
|
//
|
|
// UnityEngine.Experimental.Rendering.HDPipeline.Decal+DecalSurfaceData: static fields
|
|
//
|
|
#define DEBUGVIEW_DECAL_DECALSURFACEDATA_BASE_COLOR (10000)
|
|
#define DEBUGVIEW_DECAL_DECALSURFACEDATA_NORMAL (10001)
|
|
#define DEBUGVIEW_DECAL_DECALSURFACEDATA_MASK (10002)
|
|
#define DEBUGVIEW_DECAL_DECALSURFACEDATA_HTILE_MASK (10003)
|
|
|
|
//
|
|
// UnityEngine.Experimental.Rendering.HDPipeline.Decal+DBufferMaterial: static fields
|
|
//
|
|
#define DBUFFERMATERIAL_COUNT (3)
|
|
|
|
//
|
|
// UnityEngine.Experimental.Rendering.HDPipeline.Decal+DBufferHTileBit: static fields
|
|
//
|
|
#define DBUFFERHTILEBIT_DIFFUSE (1)
|
|
#define DBUFFERHTILEBIT_NORMAL (2)
|
|
#define DBUFFERHTILEBIT_MASK (4)
|
|
|
|
// Generated from UnityEngine.Experimental.Rendering.HDPipeline.Decal+DecalSurfaceData
|
|
// PackingRules = Exact
|
|
struct DecalSurfaceData
|
|
{
|
|
float4 baseColor;
|
|
float4 normalWS;
|
|
float4 mask;
|
|
uint HTileMask;
|
|
};
|
|
|
|
// Generated from UnityEngine.Experimental.Rendering.HDPipeline.DecalData
|
|
// PackingRules = Exact
|
|
struct DecalData
|
|
{
|
|
float4x4 worldToDecal;
|
|
float4x4 normalToWorld;
|
|
float4 diffuseScaleBias;
|
|
float4 normalScaleBias;
|
|
float4 maskScaleBias;
|
|
float4 baseColor;
|
|
};
|
|
|
|
//
|
|
// Accessors for UnityEngine.Experimental.Rendering.HDPipeline.DecalData
|
|
//
|
|
float4x4 GetWorldToDecal(DecalData value)
|
|
{
|
|
return value.worldToDecal;
|
|
}
|
|
float4x4 GetNormalToWorld(DecalData value)
|
|
{
|
|
return value.normalToWorld;
|
|
}
|
|
float4 GetDiffuseScaleBias(DecalData value)
|
|
{
|
|
return value.diffuseScaleBias;
|
|
}
|
|
float4 GetNormalScaleBias(DecalData value)
|
|
{
|
|
return value.normalScaleBias;
|
|
}
|
|
float4 GetMaskScaleBias(DecalData value)
|
|
{
|
|
return value.maskScaleBias;
|
|
}
|
|
|
|
//
|
|
// Debug functions
|
|
//
|
|
void GetGeneratedDecalSurfaceDataDebug(uint paramId, DecalSurfaceData decalsurfacedata, inout float3 result, inout bool needLinearToSRGB)
|
|
{
|
|
switch (paramId)
|
|
{
|
|
case DEBUGVIEW_DECAL_DECALSURFACEDATA_BASE_COLOR:
|
|
result = decalsurfacedata.baseColor.xyz;
|
|
needLinearToSRGB = true;
|
|
break;
|
|
case DEBUGVIEW_DECAL_DECALSURFACEDATA_NORMAL:
|
|
result = decalsurfacedata.normalWS.xyz;
|
|
break;
|
|
case DEBUGVIEW_DECAL_DECALSURFACEDATA_MASK:
|
|
result = decalsurfacedata.mask.xyz;
|
|
break;
|
|
case DEBUGVIEW_DECAL_DECALSURFACEDATA_HTILE_MASK:
|
|
result = GetIndexColor(decalsurfacedata.HTileMask);
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
#endif
|