您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

162 行
3.1 KiB

//
// This file was automatically generated from Assets/ScriptableRenderLoop/HDRenderLoop/Shaders/LightDefinition.cs. Please don't edit by hand.
//
//
// UnityEngine.ScriptableRenderLoop.EnvShapeType: static fields
//
#define ENVSHAPETYPE_NONE (0)
#define ENVSHAPETYPE_BOX (1)
#define ENVSHAPETYPE_SPHERE (2)
// Generated from UnityEngine.ScriptableRenderLoop.PunctualLightData
// PackingRules = Exact
struct PunctualLightData
{
float3 positionWS;
float invSqrAttenuationRadius;
float3 color;
float useDistanceAttenuation;
float3 forward;
float diffuseScale;
float3 up;
float specularScale;
float3 right;
float shadowDimmer;
float angleScale;
float angleOffset;
float2 unused2;
};
// Generated from UnityEngine.ScriptableRenderLoop.AreaLightData
// PackingRules = Exact
struct AreaLightData
{
float3 positionWS;
};
// Generated from UnityEngine.ScriptableRenderLoop.EnvLightData
// PackingRules = Exact
struct EnvLightData
{
float3 positionWS;
int shapeType;
float4x4 worldToLocal;
float3 innerDistance;
int sliceIndex;
float3 capturePointWS;
float blendDistance;
};
// Generated from UnityEngine.ScriptableRenderLoop.PlanarLightData
// PackingRules = Exact
struct PlanarLightData
{
float3 positionWS;
};
//
// Accessors for UnityEngine.ScriptableRenderLoop.PunctualLightData
//
float3 GetPositionWS(PunctualLightData value)
{
return value.positionWS;
}
float GetInvSqrAttenuationRadius(PunctualLightData value)
{
return value.invSqrAttenuationRadius;
}
float3 GetColor(PunctualLightData value)
{
return value.color;
}
float GetUseDistanceAttenuation(PunctualLightData value)
{
return value.useDistanceAttenuation;
}
float3 GetForward(PunctualLightData value)
{
return value.forward;
}
float GetDiffuseScale(PunctualLightData value)
{
return value.diffuseScale;
}
float3 GetUp(PunctualLightData value)
{
return value.up;
}
float GetSpecularScale(PunctualLightData value)
{
return value.specularScale;
}
float3 GetRight(PunctualLightData value)
{
return value.right;
}
float GetShadowDimmer(PunctualLightData value)
{
return value.shadowDimmer;
}
float GetAngleScale(PunctualLightData value)
{
return value.angleScale;
}
float GetAngleOffset(PunctualLightData value)
{
return value.angleOffset;
}
float2 GetUnused2(PunctualLightData value)
{
return value.unused2;
}
//
// Accessors for UnityEngine.ScriptableRenderLoop.AreaLightData
//
float3 GetPositionWS(AreaLightData value)
{
return value.positionWS;
}
//
// Accessors for UnityEngine.ScriptableRenderLoop.EnvLightData
//
float3 GetPositionWS(EnvLightData value)
{
return value.positionWS;
}
int GetShapeType(EnvLightData value)
{
return value.shapeType;
}
float4x4 GetWorldToLocal(EnvLightData value)
{
return value.worldToLocal;
}
float3 GetInnerDistance(EnvLightData value)
{
return value.innerDistance;
}
int GetSliceIndex(EnvLightData value)
{
return value.sliceIndex;
}
float3 GetCapturePointWS(EnvLightData value)
{
return value.capturePointWS;
}
float GetBlendDistance(EnvLightData value)
{
return value.blendDistance;
}
//
// Accessors for UnityEngine.ScriptableRenderLoop.PlanarLightData
//
float3 GetPositionWS(PlanarLightData value)
{
return value.positionWS;
}